From b58b4c1e0dbe05e058c3062d6111092e760b9df6 Mon Sep 17 00:00:00 2001 From: Mamatha Rao Date: Fri, 1 Mar 2024 11:50:58 +0530 Subject: [PATCH 1/4] Fixed Deprecated Warning --- includes/Partials/CaptiveFlow.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Partials/CaptiveFlow.php b/includes/Partials/CaptiveFlow.php index 9647611e..92ac28c8 100644 --- a/includes/Partials/CaptiveFlow.php +++ b/includes/Partials/CaptiveFlow.php @@ -73,18 +73,18 @@ static function( $classes ) { public static function register_page() { \add_submenu_page( - null, - null, - null, + '', + '', + '', Permissions::ADMIN, self::$PAYPAL_CAPTIVE_FLOW, array( __CLASS__, 'render_paypal' ), 100 ); \add_submenu_page( - null, - null, - null, + '', + '', + '', Permissions::ADMIN, self::$SHIPPO_CAPTIVE_FLOW, array( __CLASS__, 'render_shippo' ), From 581be97e2a72e0cb596cdbab526207563677b85b Mon Sep 17 00:00:00 2001 From: Mamatha Rao Date: Tue, 5 Mar 2024 15:38:30 +0530 Subject: [PATCH 2/4] Fixed the warning from PluginsController.php --- includes/RestApi/PluginsController.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/RestApi/PluginsController.php b/includes/RestApi/PluginsController.php index 0f379dbf..b143a660 100644 --- a/includes/RestApi/PluginsController.php +++ b/includes/RestApi/PluginsController.php @@ -80,8 +80,16 @@ public function get_plugins_status( \WP_REST_Request $request) { continue; } $status = 'need_to_install'; - if ( file_exists( WP_PLUGIN_DIR . '/' . $info['file_extented'] ) ||file_exists( WP_PLUGIN_DIR . '/' . $info['file_premium'] ) ||file_exists( WP_PLUGIN_DIR . '/' . $info['file'] ) ) { - $active = (\is_plugin_active( $info['file_extented'] ) || \is_plugin_active( $info['file_premium'] )|| \is_plugin_active( $info['file'] )); + if ( + (isset($info['file_extended']) && file_exists(WP_PLUGIN_DIR . '/' . $info['file_extended'])) || + (isset($info['file_premium']) && file_exists(WP_PLUGIN_DIR . '/' . $info['file_premium'])) || + file_exists(WP_PLUGIN_DIR . '/' . $info['file']) + ){ + $active = ( + (isset($info['file_extended']) && \is_plugin_active($info['file_extended'])) || + (isset($info['file_premium']) && \is_plugin_active($info['file_premium'])) || + \is_plugin_active($info['file']) + ); if ( $active ) { $status = 'active'; } else { From 463b7e62aef976372491a533ccd8043172316f6f Mon Sep 17 00:00:00 2001 From: Mamatha Rao Date: Wed, 6 Mar 2024 16:40:34 +0530 Subject: [PATCH 3/4] Fixed the notice --- includes/ECommerce.php | 3 ++- languages/wp-module-ecommerce-en_US.mo | Bin 0 -> 442 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 languages/wp-module-ecommerce-en_US.mo diff --git a/includes/ECommerce.php b/includes/ECommerce.php index 601c0e43..480a51e2 100644 --- a/includes/ECommerce.php +++ b/includes/ECommerce.php @@ -271,7 +271,8 @@ public function register_settings() { public function register_textdomains() { $MODULE_LANG_DIR = $this->container->plugin()->dir . 'vendor/newfold-labs/wp-module-ecommerce/languages'; \load_script_textdomain( 'nfd-ecommerce-dependency', 'wp-module-ecommerce', $MODULE_LANG_DIR ); - \load_textdomain( 'wp-module-ecommerce', $MODULE_LANG_DIR ); + $current_language = get_locale(); + \load_textdomain( 'wp-module-ecommerce', $MODULE_LANG_DIR."/wp-module-ecommerce-".$current_language.".mo" ); } /** diff --git a/languages/wp-module-ecommerce-en_US.mo b/languages/wp-module-ecommerce-en_US.mo new file mode 100644 index 0000000000000000000000000000000000000000..e15c256a0be7f1aa6e3221b559ae0df670cde37e GIT binary patch literal 442 zcmYjN%TB^T6s^XMUAlHLd%bOW8B%2u6l1n+pjNr7 N5RgLJ=j@+E{s)B1gi` Date: Mon, 11 Mar 2024 12:26:52 +0530 Subject: [PATCH 4/4] added fixes for enable and mange in yith features. Name mismatch in `plugin controller` and `plugins` file --- build/index.asset.php | 2 +- includes/Data/Plugins.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/index.asset.php b/build/index.asset.php index 1e7c7848..ac520a75 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '11bfde3e6f52de3d50f6'); + array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '9c6e5dcd37ddbb90fb06'); diff --git a/includes/Data/Plugins.php b/includes/Data/Plugins.php index beaf4eee..c2802b61 100644 --- a/includes/Data/Plugins.php +++ b/includes/Data/Plugins.php @@ -45,37 +45,37 @@ final class Plugins 'url' => 'admin.php?page=wc-settings', ), 'nfd_slug_yith_woocommerce_customize_myaccount_page' => array( - 'file_extented' => 'yith-woocommerce-customize-myaccount-page-extended/init.php', + 'file_extended' => 'yith-woocommerce-customize-myaccount-page-extended/init.php', 'file_premium' => 'yith-woocommerce-customize-myaccount-page-premium/init.php', 'file' => 'yith-woocommerce-customize-myaccount-page/init.php', 'url' => 'admin.php?page=yith_wcmap_panel', ), 'nfd_slug_yith_woocommerce_gift_cards' => array( - 'file_extented' => 'yith-woocommerce-gift-cards-extended/init.php', + 'file_extended' => 'yith-woocommerce-gift-cards-extended/init.php', 'file_premium' => 'yith-woocommerce-gift-cards-premium/init.php', 'file' => 'yith-woocommerce-gift-cards/init.php', 'url' => 'admin.php?page=yith_woocommerce_gift_cards_panel', ), 'nfd_slug_yith_woocommerce_wishlist' => array( - 'file_extented' => 'yith-woocommerce-wishlist-extended/init.php', + 'file_extended' => 'yith-woocommerce-wishlist-extended/init.php', 'file_premium' => 'yith-woocommerce-wishlist-premium/init.php', 'file' => 'yith-woocommerce-wishlist/init.php', 'url' => 'admin.php?page=yith_wcwl_panel', ), 'nfd_slug_yith_woocommerce_ajax_product_filter' => array( - 'file_extented' => 'yith-woocommerce-ajax-product-filter-extended/init.php', + 'file_extended' => 'yith-woocommerce-ajax-product-filter-extended/init.php', 'file_premium' => 'yith-woocommerce-ajax-product-filter-premium/init.php', 'file' => 'yith-woocommerce-ajax-product-filter/init.php', 'url' => 'admin.php?page=yith_wcan_panel', ), 'nfd_slug_yith_woocommerce_booking' => array( - 'file_extented' => 'yith-woocommerce-booking-extended/init.php', + 'file_extended' => 'yith-woocommerce-booking-extended/init.php', 'file_premium' => 'yith-woocommerce-booking-premium/init.php', 'file' => 'yith-woocommerce-booking/init.php', 'url' => 'admin.php?page=yith_wcbk_panel', ), 'yith-woocommerce-ajax-search' => array( - 'file_extented' => 'yith-woocommerce-ajax-search-extended/init.php', + 'file_extended' => 'yith-woocommerce-ajax-search-extended/init.php', 'file_premium' => 'yith-woocommerce-ajax-search-premium/init.php', 'file' => 'yith-woocommerce-ajax-search/init.php', 'url' => 'admin.php?page=yith_wcas_panel',