Version Description
Fixed removing of the "Try Gutenberg" call-out when the Gutenberg plugin is not activated. Fixed to always show the settings and the settings link in the plugins list table. Updated the readme text.
Download this release
Release Info
Developer | azaozz |
Plugin | Classic Editor |
Version | 0.4 |
Comparing to | |
See all releases |
Code changes from version 0.3 to 0.4
- classic-editor.php +8 -7
- readme.txt +8 -7
classic-editor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen layout (TinyMCE, meta boxes, etc.). Supports the older plugins that extend this screen.
|
8 |
-
* Version: 0.
|
9 |
* Author: WordPress Contributors
|
10 |
* License: GPL-2.0+
|
11 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
@@ -45,6 +45,13 @@ function classic_editor_is_gutenberg_active() {
|
|
45 |
|
46 |
add_action( 'plugins_loaded', 'classic_editor_init_actions' );
|
47 |
function classic_editor_init_actions() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
if ( ! classic_editor_is_gutenberg_active() || ! (
|
49 |
has_filter( 'replace_editor', 'gutenberg_init' ) ||
|
50 |
has_filter( 'load-post.php', 'gutenberg_intercept_edit_post' ) ) ) {
|
@@ -141,14 +148,8 @@ function classic_editor_init_actions() {
|
|
141 |
add_filter( 'redirect_post_location', 'classic_editor_redirect_location' );
|
142 |
}
|
143 |
|
144 |
-
add_action( 'admin_init', 'classic_editor_admin_init' );
|
145 |
-
add_filter( 'plugin_action_links', 'classic_editor_add_settings_link', 10, 2 );
|
146 |
-
|
147 |
// Gutenberg plugin: remove the "Classic editor" row actions.
|
148 |
remove_action( 'admin_init', 'gutenberg_add_edit_link_filters' );
|
149 |
-
|
150 |
-
// Remove the "Try Gutenberg" dashboard widget.
|
151 |
-
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
|
152 |
}
|
153 |
|
154 |
function classic_editor_admin_init() {
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen layout (TinyMCE, meta boxes, etc.). Supports the older plugins that extend this screen.
|
8 |
+
* Version: 0.4
|
9 |
* Author: WordPress Contributors
|
10 |
* License: GPL-2.0+
|
11 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
45 |
|
46 |
add_action( 'plugins_loaded', 'classic_editor_init_actions' );
|
47 |
function classic_editor_init_actions() {
|
48 |
+
// Always remove the "Try Gutenberg" dashboard widget. See https://core.trac.wordpress.org/ticket/44635.
|
49 |
+
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
|
50 |
+
|
51 |
+
// Always show the settings and the link to them in the plugins list table.
|
52 |
+
add_filter( 'plugin_action_links', 'classic_editor_add_settings_link', 10, 2 );
|
53 |
+
add_action( 'admin_init', 'classic_editor_admin_init' );
|
54 |
+
|
55 |
if ( ! classic_editor_is_gutenberg_active() || ! (
|
56 |
has_filter( 'replace_editor', 'gutenberg_init' ) ||
|
57 |
has_filter( 'load-post.php', 'gutenberg_intercept_edit_post' ) ) ) {
|
148 |
add_filter( 'redirect_post_location', 'classic_editor_redirect_location' );
|
149 |
}
|
150 |
|
|
|
|
|
|
|
151 |
// Gutenberg plugin: remove the "Classic editor" row actions.
|
152 |
remove_action( 'admin_init', 'gutenberg_add_edit_link_filters' );
|
|
|
|
|
|
|
153 |
}
|
154 |
|
155 |
function classic_editor_admin_init() {
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: azaozz
|
3 |
Requires at least: 4.9
|
4 |
Tested up to: 4.9
|
5 |
-
Stable tag: 0.
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
|
@@ -10,11 +10,9 @@ Restores the Classic Editor and the old-style Edit Post screen layout (TinyMCE,
|
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
Classic Editor restores the previous Edit Post screen and makes it possible to use the WordPress plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor.
|
18 |
|
19 |
It has two modes:
|
20 |
|
@@ -23,9 +21,12 @@ It has two modes:
|
|
23 |
|
24 |
The modes can be changed from the Settings -> Writing screen. See the screenshots.
|
25 |
|
26 |
-
The current release is intended for testing with the [Gutenberg plugin](https://wordpress.org/plugins/gutenberg/) version 1.5 or newer.
|
27 |
-
|
28 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
29 |
= 0.3 =
|
30 |
Updated the option from a checkbox to couple of radio buttons, seems clearer. Thanks to @designsimply for the label text suggestions.
|
31 |
Some general updates and cleanup.
|
2 |
Contributors: azaozz
|
3 |
Requires at least: 4.9
|
4 |
Tested up to: 4.9
|
5 |
+
Stable tag: 0.3
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
Classic Editor restores the previous WordPress editor and the Edit Post screen and makes it possible to use the plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor.
|
14 |
|
15 |
+
By default it will hide all traces of the new Gutenberg editor including the Dashboard widget asking the users to try it.
|
|
|
|
|
16 |
|
17 |
It has two modes:
|
18 |
|
21 |
|
22 |
The modes can be changed from the Settings -> Writing screen. See the screenshots.
|
23 |
|
|
|
|
|
24 |
== Changelog ==
|
25 |
+
= 0.4 =
|
26 |
+
Fixed removing of the "Try Gutenberg" call-out when the Gutenberg plugin is not activated.
|
27 |
+
Fixed to always show the settings and the settings link in the plugins list table.
|
28 |
+
Updated the readme text.
|
29 |
+
|
30 |
= 0.3 =
|
31 |
Updated the option from a checkbox to couple of radio buttons, seems clearer. Thanks to @designsimply for the label text suggestions.
|
32 |
Some general updates and cleanup.
|