From f361683d60ba9242ff42027c30c950d63caae045 Mon Sep 17 00:00:00 2001 From: Alexandre Faustino Date: Wed, 30 Oct 2024 21:22:55 +0000 Subject: [PATCH] Fix: Semaphore class name --- includes/Settings/SettingsDebug.php | 4 ++-- views/advanced-tools.php | 6 +++--- woocommerce-pdf-invoices-packingslips.php | 2 +- wpo-ips-legacy-class-alias-mapping.php | 16 ++++++++-------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/includes/Settings/SettingsDebug.php b/includes/Settings/SettingsDebug.php index b54363e2e..cd1bf7052 100644 --- a/includes/Settings/SettingsDebug.php +++ b/includes/Settings/SettingsDebug.php @@ -245,7 +245,7 @@ private function clear_tmp( $data ) { } private function clear_released_semaphore_locks( $data ) { - \WPO\WC\PDF_Invoices\Updraft_Semaphore_3_0::cleanup_released_locks(); + \WPO\IPS\Semaphore::cleanup_released_locks(); $message = esc_html__( 'Released semaphore locks have been cleaned up!', 'woocommerce-pdf-invoices-packing-slips' ); wcpdf_log_error( $message, 'info' ); @@ -253,7 +253,7 @@ private function clear_released_semaphore_locks( $data ) { } private function clear_released_legacy_semaphore_locks( $data ) { - \WPO\WC\PDF_Invoices\Updraft_Semaphore_3_0::cleanup_released_locks( true ); + \WPO\IPS\Semaphore::cleanup_released_locks( true ); $message = esc_html__( 'Released legacy semaphore locks have been cleaned up!', 'woocommerce-pdf-invoices-packing-slips' ); wcpdf_log_error( $message, 'info' ); diff --git a/views/advanced-tools.php b/views/advanced-tools.php index 08dc630c7..730387990 100644 --- a/views/advanced-tools.php +++ b/views/advanced-tools.php @@ -68,7 +68,7 @@ - + 0 ) : ?>

@@ -91,7 +91,7 @@

- +

@@ -113,7 +113,7 @@ 0 ) : ?>

diff --git a/woocommerce-pdf-invoices-packingslips.php b/woocommerce-pdf-invoices-packingslips.php index 799e25414..089b170a5 100644 --- a/woocommerce-pdf-invoices-packingslips.php +++ b/woocommerce-pdf-invoices-packingslips.php @@ -79,7 +79,7 @@ public function __construct() { add_action( 'admin_notices', array( $this, 'php_below_7_4_drop' ) ); add_action( 'admin_notices', array( $this, 'ubl_php_version_required' ) ); add_action( 'admin_notices', array( $this, 'legacy_addon_notices' ) ); - add_action( 'init', array( '\\WPO\\WC\\PDF_Invoices\\Updraft_Semaphore_3_0', 'init_cleanup' ), 999 ); // wait AS to initialize + add_action( 'init', array( '\\WPO\\IPS\\Semaphore', 'init_cleanup' ), 999 ); // wait AS to initialize // deactivate legacy extensions if activated register_activation_hook( __FILE__, array( $this, 'deactivate_legacy_addons' ) ); diff --git a/wpo-ips-legacy-class-alias-mapping.php b/wpo-ips-legacy-class-alias-mapping.php index f4f77d8dd..21404e3b0 100644 --- a/wpo-ips-legacy-class-alias-mapping.php +++ b/wpo-ips-legacy-class-alias-mapping.php @@ -10,11 +10,11 @@ } $wcpdf_legacy_class_alias_mapping = apply_filters( 'wpo_wcpdf_legacy_class_alias_mapping', array( - + // includes/Compatibility '\\WPO\\WC\\PDF_Invoices\\Compatibility\\Third_Party_Plugins' => '\\WPO\\IPS\\Compatibility\\ThirdPartyPlugins', '\\WPO\\WC\\PDF_Invoices\\Compatibility\\Order_Util' => '\\WPO\\IPS\\Compatibility\\OrderUtil', - + // includes/Documents '\\WPO\\WC\\PDF_Invoices\\Documents\\Order_Document_Methods' => '\\WPO\\IPS\\Documents\\OrderDocumentMethods', '\\WPO\\WC\\PDF_Invoices\\Documents\\Order_Document' => '\\WPO\\IPS\\Documents\\OrderDocument', @@ -23,11 +23,11 @@ '\\WPO\\WC\\PDF_Invoices\\Documents\\Invoice' => '\\WPO\\IPS\\Documents\\Invoice', '\\WPO\\WC\\PDF_Invoices\\Documents\\Packing_Slip' => '\\WPO\\IPS\\Documents\\PackingSlip', '\\WPO\\WC\\PDF_Invoices\\Documents\\Sequential_Number_Store' => '\\WPO\\IPS\\Documents\\SequentialNumberStore', - + // includes/Makers '\\WPO\\WC\\PDF_Invoices\\Makers\\PDF_Maker' => '\\WPO\\IPS\\Makers\\PDFMaker', '\\WPO\\WC\\PDF_Invoices\\Makers\\UBL_Maker' => '\\WPO\\IPS\\Makers\\UBLMaker', - + // includes/Settings '\\WPO\\WC\\PDF_Invoices\\Settings\\Settings_Callbacks' => '\\WPO\\IPS\\Settings\\SettingsCallbacks', '\\WPO\\WC\\PDF_Invoices\\Settings\\Settings_Debug' => '\\WPO\\IPS\\Settings\\SettingsDebug', @@ -35,10 +35,10 @@ '\\WPO\\WC\\PDF_Invoices\\Settings\\Settings_General' => '\\WPO\\IPS\\Settings\\SettingsGeneral', '\\WPO\\WC\\PDF_Invoices\\Settings\\Settings_UBL' => '\\WPO\\IPS\\Settings\\SettingsUbl', '\\WPO\\WC\\PDF_Invoices\\Settings\\Settings_Upgrade' => '\\WPO\\IPS\\Settings\\SettingsUpgrade', - + // includes/Tables '\\WPO\\WC\\PDF_Invoices\\Tables\\Number_Store_List_Table' => '\\WPO\\IPS\\Tables\\NumberStoreListTable', - + // includes '\\WPO\\WC\\PDF_Invoices\\Admin' => '\\WPO\\IPS\\Admin', '\\WPO\\WC\\PDF_Invoices\\Assets' => '\\WPO\\IPS\\Assets', @@ -51,10 +51,10 @@ '\\WPO\\WC\\PDF_Invoices\\Settings' => '\\WPO\\IPS\\Settings', '\\WPO\\WC\\PDF_Invoices\\Setup_Wizard' => '\\WPO\\IPS\\SetupWizard', '\\WPO\\WC\\PDF_Invoices\\Updraft_Semaphore_3_0' => '\\WPO\\IPS\\Semaphore', - + // ubl '\\WPO\\WC\\UBL\\Handlers\\UblHandler' => '\\WPO\\IPS\\UBL\\Handlers\\UblHandler', // used by `woocommerce-pdf-ips-ubl-extender` - + ) ); foreach ( $wcpdf_legacy_class_alias_mapping as $old_class => $new_class ) {