senlin / classic-editor-addon

This free "Classic Editor Addon" plugin makes sure that Gutenberg cannot be accidentally activated even while the "Classic Editor" plugin is active.
GNU General Public License v3.0
20 stars 5 forks source link

Deregister hook wrong? #14

Closed adekrijger closed 1 year ago

adekrijger commented 1 year ago
if ( class_exists( 'woocommerce' ) ) {
    wp_dequeue_style( 'wc-block-style' );
    wp_deregister_style( 'wc-block-style' );
}

This does not work, because the handles should be wc-blocks-style with an s.

senlin commented 1 year ago

More than welcome to leave a PR

senlin commented 1 year ago

Yes, you were right it needs the additional "s", WooCommerce changed that fairly recently...

Just released new version that addresses this too.