Version Description
- January 22, 2019
- add function that removes the 2 block editor style calls from the
<head>
section of your site
Download this release
Release Info
Developer | senlin |
Plugin | Classic Editor Addon |
Version | 2.4.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.4.0
- classic-editor-addon.php +14 -2
- readme.txt +11 -2
classic-editor-addon.php
CHANGED
@@ -4,10 +4,10 @@
|
|
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.0.
|
11 |
|
12 |
* License: GPL-3.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
@@ -42,3 +42,15 @@ function classic_editor_addon_post_init() {
|
|
42 |
}
|
43 |
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.4.0
|
8 |
|
9 |
* Requires at least: 4.9
|
10 |
+
* Tested up to: 5.0.3
|
11 |
|
12 |
* License: GPL-3.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
42 |
}
|
43 |
|
44 |
}
|
45 |
+
|
46 |
+
add_action( 'wp_enqueue_scripts', 'classic_editor_addon_remove_block_styles', 100 );
|
47 |
+
|
48 |
+
function classic_editor_addon_remove_block_styles() {
|
49 |
+
|
50 |
+
wp_dequeue_style( 'wp-block-library' );
|
51 |
+
wp_deregister_style( 'wp-block-library' );
|
52 |
+
|
53 |
+
wp_dequeue_style( 'wp-block-library-theme' );
|
54 |
+
wp_deregister_style( 'wp-block-library-theme' );
|
55 |
+
|
56 |
+
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.0.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -16,6 +16,10 @@ This free "Classic Editor Addon" plugin makes sure that the new block editor can
|
|
16 |
|
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 |
Please pay attention that the minimum PHP version to use our plugin is <strong>5.4</strong>.
|
20 |
|
21 |
The reason we released the "Classic Editor Addon" plugin is because in the beginning the "Classic Editor" plugin did not what it said on the label.
|
@@ -58,6 +62,11 @@ Please open an issue on [Github](https://github.com/senlin/classic-editor-addon/
|
|
58 |
|
59 |
== Changelog ==
|
60 |
|
|
|
|
|
|
|
|
|
|
|
61 |
= 2.3.1 =
|
62 |
|
63 |
* December 17, 2018
|
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.0.3
|
7 |
+
Stable tag: 2.4.0
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
16 |
|
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 |
+
The new block editor adds 2 sets of styles to the `<head>` section of your site. But since you have the Classic Editor Addon installed, the calls to those styles are a complete waste. With version 2.4.0 your site will not call these stylesheets anymore. Win!
|
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 |
|
25 |
The reason we released the "Classic Editor Addon" plugin is because in the beginning the "Classic Editor" plugin did not what it said on the label.
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 2.4.0 =
|
66 |
+
|
67 |
+
* January 22, 2019
|
68 |
+
* add function that removes the 2 block editor style calls from the `<head>` section of your site
|
69 |
+
|
70 |
= 2.3.1 =
|
71 |
|
72 |
* December 17, 2018
|