diff --git a/includes/admin/class-pinterest-for-woocommerce-admin.php b/includes/admin/class-pinterest-for-woocommerce-admin.php index 8ead3c73..e0c9eafd 100644 --- a/includes/admin/class-pinterest-for-woocommerce-admin.php +++ b/includes/admin/class-pinterest-for-woocommerce-admin.php @@ -276,6 +276,10 @@ public function load_setup_guide_scripts() { 'version' => PINTEREST_FOR_WOOCOMMERCE_VERSION, ); + // This is a quick fix for a breaking change in WP 6.6. + // We may not need this in the future when we update `@wordpress/*` packages to newer versions. + $script_info['dependencies'][] = 'regenerator-runtime'; + $script_info['dependencies'][] = 'wc-settings'; wp_register_script( @@ -503,7 +507,7 @@ public function maybe_redirect_to_middleware() { wp_safe_redirect( Pinterest_For_Woocommerce()::get_middleware_url( $context, $args ) ); exit; - + } /**