From 757bd015f956673b6a3d0cba8947e8bb829540df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Kaleta?= Date: Fri, 16 Oct 2026 08:47:51 +0200 Subject: [PATCH] Resolved #891 Fix theme detection for newest SDK module Too many redirects --- start.php | 2 ++ 1 file changed, 2 insertions(+) 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() . '/'