Version Description
- October 11, 2019
- add function that removes the 1 block editor style call from the
<head>
section of your site when WooCommerce is running
Download this release
Release Info
Developer | senlin |
Plugin | Classic Editor Addon |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.5.0
- classic-editor-addon.php +9 -3
- readme.txt +9 -5
classic-editor-addon.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Classic Editor Addon
|
4 |
-
* Description: This free "Classic Editor Addon" plugin makes sure that the new block editor cannot be accidentally activated. See README for details.
|
5 |
|
6 |
* Author: <a href="https://so-wp.com">Pieter Bos</a>, <a href="https://gschoppe.com">Greg Schoppe</a>
|
7 |
-
* Version: 2.
|
8 |
|
9 |
* Requires at least: 4.9
|
10 |
-
* Tested up to: 5.
|
11 |
|
12 |
* License: GPL-3.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
@@ -53,4 +53,10 @@ function classic_editor_addon_remove_block_styles() {
|
|
53 |
wp_dequeue_style( 'wp-block-library-theme' );
|
54 |
wp_deregister_style( 'wp-block-library-theme' );
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Classic Editor Addon
|
4 |
+
* Description: This free "Classic Editor Addon" plugin makes sure that the new block editor cannot be accidentally activated and blocks the calls to additional styles from the `<head>` (frontend). See README for details.
|
5 |
|
6 |
* Author: <a href="https://so-wp.com">Pieter Bos</a>, <a href="https://gschoppe.com">Greg Schoppe</a>
|
7 |
+
* Version: 2.5.0
|
8 |
|
9 |
* Requires at least: 4.9
|
10 |
+
* Tested up to: 5.2.3
|
11 |
|
12 |
* License: GPL-3.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
53 |
wp_dequeue_style( 'wp-block-library-theme' );
|
54 |
wp_deregister_style( 'wp-block-library-theme' );
|
55 |
|
56 |
+
// @2.5.0 add condition that checks for WooCommerce and removes call to block styles
|
57 |
+
if ( class_exists( 'woocommerce' ) ) {
|
58 |
+
wp_dequeue_style( 'wc-block-style' );
|
59 |
+
wp_deregister_style( 'wc-block-style' );
|
60 |
+
}
|
61 |
+
|
62 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Classic Editor Addon ===
|
2 |
Contributors: senlin, gschoppe
|
3 |
-
Tags: gutenberg, block editor, classic editor, addon, wordpress 5.0
|
4 |
Requires at least: 4.9
|
5 |
Requires PHP: 5.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -17,8 +17,7 @@ This free "Classic Editor Addon" plugin makes sure that the new block editor can
|
|
17 |
The free Classic Editor Addon plugin is targeted at everyone who is not yet ready for the new editing experience that has been introduced in WordPress 5.0. Install it now on sites and the UX remains the same as you are used to!
|
18 |
|
19 |
<strong>What's New:</strong>
|
20 |
-
|
21 |
-
Credit for this suggestion go to [Mitchell Miller](https://github.com/mitchelldmiller) who brought this to our attention. Thanks Mitchell!
|
22 |
|
23 |
Please pay attention that the minimum PHP version to use our plugin is <strong>5.4</strong>.
|
24 |
|
@@ -62,6 +61,11 @@ Please open an issue on [Github](https://github.com/senlin/classic-editor-addon/
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
|
|
|
|
|
|
|
|
|
|
65 |
= 2.4.0 =
|
66 |
|
67 |
* January 22, 2019
|
1 |
=== Classic Editor Addon ===
|
2 |
Contributors: senlin, gschoppe
|
3 |
+
Tags: gutenberg, block editor, classic editor, addon, wordpress 5.0, woocommerce
|
4 |
Requires at least: 4.9
|
5 |
Requires PHP: 5.4
|
6 |
+
Tested up to: 5.2.3
|
7 |
+
Stable tag: 2.5.0
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
17 |
The free Classic Editor Addon plugin is targeted at everyone who is not yet ready for the new editing experience that has been introduced in WordPress 5.0. Install it now on sites and the UX remains the same as you are used to!
|
18 |
|
19 |
<strong>What's New:</strong>
|
20 |
+
Sites running WooCommerce get another style added to the `<head>` section of the site. With the Classic Editor Addon installed that call is obviously redundant. With version 2.5.0 we introduce a condition that checks for WooCommerce and if active it removes that call. Win!
|
|
|
21 |
|
22 |
Please pay attention that the minimum PHP version to use our plugin is <strong>5.4</strong>.
|
23 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 2.5.0 =
|
65 |
+
|
66 |
+
* October 11, 2019
|
67 |
+
* add function that removes the 1 block editor style call from the `<head>` section of your site when WooCommerce is running
|
68 |
+
|
69 |
= 2.4.0 =
|
70 |
|
71 |
* January 22, 2019
|