diff --git a/plugins/woocommerce/changelog/41092-fix-preload-jetpack-data-without-jetpack-plugin b/plugins/woocommerce/changelog/41092-fix-preload-jetpack-data-without-jetpack-plugin new file mode 100644 index 0000000000000..b2b85e4297099 --- /dev/null +++ b/plugins/woocommerce/changelog/41092-fix-preload-jetpack-data-without-jetpack-plugin @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Preload Jetpack-related data from the Jetpack Connection package \ No newline at end of file diff --git a/plugins/woocommerce/src/Internal/Admin/Loader.php b/plugins/woocommerce/src/Internal/Admin/Loader.php index c56932d36bdd8..e92e0476bbe50 100644 --- a/plugins/woocommerce/src/Internal/Admin/Loader.php +++ b/plugins/woocommerce/src/Internal/Admin/Loader.php @@ -336,9 +336,7 @@ public static function add_component_settings( $settings ) { } $preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() ); - if ( class_exists( 'Jetpack' ) ) { - $preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection'; - } + $preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection'; if ( ! empty( $preload_data_endpoints ) ) { $preload_data = array_reduce( array_values( $preload_data_endpoints ), diff --git a/plugins/woocommerce/src/Internal/Admin/Settings.php b/plugins/woocommerce/src/Internal/Admin/Settings.php index 8b3c7fcdee48e..e4e4af702c275 100644 --- a/plugins/woocommerce/src/Internal/Admin/Settings.php +++ b/plugins/woocommerce/src/Internal/Admin/Settings.php @@ -138,9 +138,7 @@ public function add_component_settings( $settings ) { //phpcs:ignore $preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() ); - if ( class_exists( 'Jetpack' ) ) { - $preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection'; - } + $preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection'; if ( ! empty( $preload_data_endpoints ) ) { $preload_data = array_reduce( array_values( $preload_data_endpoints ),