Skip to content

Commit

Permalink
filename miss match
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Feb 7, 2024
1 parent 4a034b1 commit fe2124d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '0bc17e98aa6c12af12ad');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '17ed1f440f5a58d0c760');
24 changes: 18 additions & 6 deletions includes/Data/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,39 @@ final class Plugins
'url' => 'admin.php?page=wc-settings',
),
'nfd_slug_yith_woocommerce_customize_myaccount_page' => array(
'file' => 'yith-woocommerce-customize-myaccount-page/init.php',
'file' => 'yith-woocommerce-customize-myaccount-page-extended/init.php',
'file1' => 'yith-woocommerce-customize-myaccount-page-premium/init.php',
'file2' => 'yith-woocommerce-customize-myaccount-page/init.php',
'url' => 'admin.php?page=yith_wcmap_panel',
),
'nfd_slug_yith_woocommerce_gift_cards' => array(
'file' => 'yith-woocommerce-gift-cards-premium/init.php',
'file' => 'yith-woocommerce-gift-cards-extended/init.php',
'file1' => 'yith-woocommerce-gift-cards-premium/init.php',
'file2' => 'yith-woocommerce-gift-cards/init.php',
'url' => 'admin.php?page=yith_woocommerce_gift_cards_panel',
),
'nfd_slug_yith_woocommerce_wishlist' => array(
'file' => 'yith-woocommerce-wishlist-premium/init.php',
'file' => 'yith-woocommerce-wishlist-extended/init.php',
'file1' => 'yith-woocommerce-wishlist-premium/init.php',
'file2' => 'yith-woocommerce-wishlist/init.php',
'url' => 'admin.php?page=yith_wcwl_panel',
),
'nfd_slug_yith_woocommerce_ajax_product_filter' => array(
'file' => 'yith-woocommerce-ajax-product-filter-premium/init.php',
'file' => 'yith-woocommerce-ajax-product-filter-extended/init.php',
'file1' => 'yith-woocommerce-ajax-product-filter-premium/init.php',
'file2' => 'yith-woocommerce-ajax-product-filter/init.php',
'url' => 'admin.php?page=yith_wcan_panel',
),
'nfd_slug_yith_woocommerce_booking' => array(
'file' => 'yith-woocommerce-booking-premium/init.php',
'file' => 'yith-woocommerce-booking-extended/init.php',
'file1' => 'yith-woocommerce-booking-premium/init.php',
'file2' => 'yith-woocommerce-booking/init.php',
'url' => 'admin.php?page=yith_wcbk_panel',
),
'yith-woocommerce-ajax-search' => array(
'file' => 'yith-woocommerce-ajax-search-premium/init.php',
'file' => 'yith-woocommerce-ajax-search-extended/init.php',
'file1' => 'yith-woocommerce-ajax-search-premium/init.php',
'file2' => 'yith-woocommerce-ajax-search/init.php',
'url' => 'admin.php?page=yith_wcas_panel',
),
'nfd_slug_yith_shippo_shippings_for_woocommerce' => array(
Expand Down
2 changes: 1 addition & 1 deletion includes/RestApi/PluginsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function get_plugins_status( \WP_REST_Request $request) {
$test = array_merge($test, array($info['file']), array($active) );

if ( file_exists( WP_PLUGIN_DIR . '/' . $info['file'] ) ) {
$active = \is_plugin_active( $info['file'] );
$active = (\is_plugin_active( $info['file'] ) || \is_plugin_active( $info['file1'] )|| \is_plugin_active( $info['file2'] ));
if ( $active ) {
$status = 'active';
} else {
Expand Down
11 changes: 5 additions & 6 deletions src/components/YITHPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function YITHPlugins({ woo, wpModules }) {
const isBluehost = RuntimeSdk?.brandSettings?.brand?.includes('bluehost');
const yithPluginsMap = new Map([
[
'faf0acf9-b5a0-479d-9cde-20fb5fa530f9',
'fc4cbc14-470d-471b-b448-c6666e5b763d',
{
title: 'nfd_slug_yith_woocommerce_booking',
name: 'YITH Booking and Appointment for WooCommerce',
Expand All @@ -31,7 +31,6 @@ export function YITHPlugins({ woo, wpModules }) {
},
],
[
// 'c9201843-d8ae-4032-bd4e-f3fa5a8b8314',
'e307cb8f-24b5-46e1-81e3-83de32c62c78',
{
title: 'yith-woocommerce-ajax-search',
Expand All @@ -40,7 +39,7 @@ export function YITHPlugins({ woo, wpModules }) {
},
],
[
'4f17bd36-4a10-4324-89ec-b0c0bf951c6b',
'93c942e4-36fb-46be-867b-5f0d014adb22',
{
title: 'nfd_slug_yith_woocommerce_wishlist',
name: 'YITH WooCommerce Wishlist',
Expand All @@ -51,7 +50,7 @@ export function YITHPlugins({ woo, wpModules }) {
},
],
[
'85a901f7-f919-4bd5-8717-8d0acbc8bb8d',
'c7025d24-a05a-4f01-bca7-5c9bcd17bb76',
{
title: 'nfd_slug_yith_woocommerce_ajax_product_filter',
name: 'YITH WooCommerce Ajax Product Filter',
Expand All @@ -62,7 +61,7 @@ export function YITHPlugins({ woo, wpModules }) {
},
],
[
'f6f20a00-01bd-45ec-8d63-28b4a018188a',
'f7834881-f5df-43ab-9c7e-c4e6969f5606',
{
title: 'nfd_slug_yith_woocommerce_gift_cards',
name: 'YITH WooCommerce Gift Cards',
Expand All @@ -73,7 +72,7 @@ export function YITHPlugins({ woo, wpModules }) {
},
],
[
'7b490bad-380c-4e47-8b92-d78773f04f41',
'58701f50-cb5c-4b39-b030-edadf4af6f97',
{
title: 'nfd_slug_yith_woocommerce_customize_myaccount_page',
name: 'YITH WooCommerce Customize My Account Page',
Expand Down

0 comments on commit fe2124d

Please sign in to comment.