diff --git a/start.php b/start.php index cea748b5..deee71b6 100644 --- a/start.php +++ b/start.php @@ -285,6 +285,7 @@ function_exists( 'wp_is_json_request' ) && $current_theme = wp_get_theme(); // Detect if current theme is the one registered as newer SDK $is_newest_sdk_module_active = ( + $fs_newest_sdk->plugin_path === $current_theme->get_stylesheet() || strpos( $fs_newest_sdk->plugin_path, '../' . $themes_directory_name . '/' . $current_theme->get_stylesheet() . '/' @@ -300,6 +301,7 @@ function_exists( 'wp_is_json_request' ) && if ( ! $is_newest_sdk_module_active && $current_theme_parent instanceof WP_Theme ) { // Detect if current theme parent is the one registered as newer SDK $is_newest_sdk_module_active = ( + $fs_newest_sdk->plugin_path === $current_theme_parent->get_stylesheet() || strpos( $fs_newest_sdk->plugin_path, '../' . $themes_directory_name . '/' . $current_theme_parent->get_stylesheet() . '/'