Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() . '/'
Expand All @@ -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() . '/'
Expand Down