Skip to content

Commit

Permalink
commit v4.3.0
Browse files Browse the repository at this point in the history
* November 10, 2023
* Removes further blocks related CSS from Woocommerce (if active) - thanks to [@florian](https://github.com/Mahjouba91) for [PR #18](#18)
  • Loading branch information
senlin committed Nov 10, 2023
1 parent 3b95dd8 commit 601f091
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

[![plugin version](https://img.shields.io/wordpress/plugin/v/classic-editor-addon.svg)](https://wordpress.org/plugins/classic-editor-addon) [![WP compatibility](https://plugintests.com/plugins/classic-editor-addon/wp-badge.svg)](https://plugintests.com/plugins/classic-editor-addon/latest) [![PHP compatibility](https://plugintests.com/plugins/classic-editor-addon/php-badge.svg)](https://plugintests.com/plugins/classic-editor-addon/latest)

###### Last updated on March 29, 2023
###### Last updated on November 10, 2023
###### Development version
###### requires at least WordPress 4.9
###### tested up to WordPress 6.2
###### tested up to WordPress 6.4
###### min. PHP version: 5.6
###### Authors: [Pieter Bos](https://github.com/senlin) & [Greg Schoppe](https://github.com/gschoppe)

Expand All @@ -18,7 +18,7 @@ The "Classic Editor +" plugin disables the block editor, removes enqueued script
The free "Classic Editor +" plugin is targeted at everyone who does not want to use the WP Block Editor (Gutenberg), introduced in WordPress 5.0. Install it now on sites and the UX remains the same as you are used to without redundant styling being added to the frontend of your site!

**What's New:**<br>
If WPML is active on your site: remove blocks stylesheet loaded regardless of whether site uses Block Editor
Removes further blocks related CSS from Woocommerce (if active)


This plugin simply disables the WP Block Editor, removes any and all styling from both front- and backend and disables the block editor for widgets too.
Expand Down Expand Up @@ -67,6 +67,11 @@ Please open an issue on [Github](https://github.com/senlin/classic-editor-addon/

## Changelog

### 4.3.0

* November 10, 2023
* Removes further blocks related CSS from Woocommerce (if active) - thanks to [@Florian](https://github.com/Mahjouba91) for [PR #18](https://github.com/senlin/classic-editor-addon/pull/18)

### 4.2.0

* March 29, 2023
Expand Down
10 changes: 5 additions & 5 deletions classic-editor-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Version: 4.3.0
* Requires at least: 4.9
* Tested up to: 6.2
* Tested up to: 6.4
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
Expand Down Expand Up @@ -44,11 +44,11 @@ function cea_remove_block_styles() {

wp_dequeue_style( 'wp-block-library-theme' );
wp_deregister_style( 'wp-block-library-theme' );

// Remove inline global CSS on the front end.
wp_dequeue_style( 'global-styles' );
wp_deregister_style( 'global-styles' );

// @2.5.0 add condition that checks for WooCommerce and removes call to block styles
if ( class_exists( 'woocommerce' ) ) {
wp_dequeue_style( 'wc-blocks-style' );
Expand All @@ -58,10 +58,10 @@ function cea_remove_block_styles() {
wp_deregister_style( 'wc-all-blocks-style' );
wp_deregister_style( 'wc-blocks-vendors-style' );
}

}

// Remove global styles and enqueueing of classic-themes.min.css
// Remove global styles and enqueueing of classic-themes.min.css
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' );
remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles');
remove_action('wp_body_open', 'wp_global_styles_render_svg_filters');
Expand Down
13 changes: 9 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: senlin, gschoppe
Tags: gutenberg, block editor, classic editor, wordpress 5.0, woocommerce, classic widgets
Requires at least: 4.9
Requires PHP: 5.6
Tested up to: 6.2
Stable tag: 4.2.0
Tested up to: 6.4
Stable tag: 4.3.0
License: GPL-3.0+
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Expand All @@ -17,15 +17,15 @@ The "Classic Editor +" plugin disables the block editor, removes enqueued script
The free "Classic Editor +" plugin is targeted at everyone who does not want to use the WP Block Editor (Gutenberg), introduced in WordPress 5.0. Install it now on sites and the UX remains the same as you are used to without redundant styling being added to the frontend of your site!

<strong>What's New:</strong>
If WPML is active on your site: remove blocks stylesheet loaded regardless of whether site uses Block Editor
Removes further blocks related CSS from Woocommerce (if active)

This plugin simply disables the WP Block Editor, removes any and all styling from both front- and backend and disables the block editor for widgets too.

And if WooCommerce has been installed on the site, "Classic Editor +" removes the block styles of that plugin too.

There are no Settings, it simply does what it says on the label.

Therefore I highly recommend installing this "Classic Editor +" plugin.
Therefore I highly recommend installing this "Classic Editor +" plugin.

I support this plugin exclusively through [Github](https://github.com/senlin/classic-editor-addon/issues). Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue here. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.

Expand Down Expand Up @@ -56,6 +56,11 @@ Please open an issue on [Github](https://github.com/senlin/classic-editor-addon/

== Changelog ==

= 4.3.0 =

* November 10, 2023
* Removes further blocks related CSS from Woocommerce (if active) - thanks to [@Florian](https://github.com/Mahjouba91) for [PR #18](https://github.com/senlin/classic-editor-addon/pull/18)

= 4.2.0 =

* March 29, 2023
Expand Down

0 comments on commit 601f091

Please sign in to comment.