New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix WCA fatal with bail conditions for WCA execution paths #32814
Conversation
8c905cb
to
4dec248
Compare
if ( ! defined( 'WC_ABSPATH' ) ) { | ||
return; | ||
} | ||
return WCAdminAssets::should_use_minified_js_file( $script_debug ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No deprecation notice via wc_deprecated_function
since it also causes output during activation, which would break plugin activation.
@@ -84,30 +84,29 @@ public function __construct() { | |||
*/ | |||
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |||
|
|||
add_action( 'admin_init', array( __CLASS__, 'is_using_installed_wc_admin_plugin' ) ); | |||
add_action( 'admin_init', array( __CLASS__, 'deactivate_wc_admin_plugin' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing the now obsolete version check with deactivation check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tested well and LGTM! Thanks for wrangling this @ilyasfoo 👍 🚀
Hi @ilyasfoo, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
Changes proposed in this Pull Request:
Closes #32797. This PR:
How to test the changes in this Pull Request:
Build WooCommerce zip
git cherry-pick 1bbf2f50d390acad83b023d1ebe61224944fd102
to get proper WC version in autoloader (Original PR). Otherwise WCAdmin plugin may take precedencepnpm nx build:zip woocommerce
to build the zipTesting on existing activated plugin
Testing new activation
FOR PR REVIEWER ONLY: