Version Description
- Fixed a warning on the block editor based widgets screen.
- Fixed use of a deprecated filter.
Download this release
Release Info
Developer | azaozz |
Plugin | Classic Editor |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
- classic-editor.php +8 -2
- readme.txt +6 -2
classic-editor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org/plugins/classic-editor/
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
|
8 |
-
* Version: 1.6
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
@@ -13,6 +13,7 @@
|
|
13 |
* Text Domain: classic-editor
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: 4.9
|
|
|
16 |
* Requires PHP: 5.2.4
|
17 |
*
|
18 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
@@ -87,7 +88,7 @@ class Classic_Editor {
|
|
87 |
add_action( 'admin_head-edit.php', array( __CLASS__, 'add_edit_php_inline_style' ) );
|
88 |
|
89 |
add_action( 'edit_form_top', array( __CLASS__, 'remember_classic_editor' ) );
|
90 |
-
add_filter( '
|
91 |
|
92 |
// Post state (edit.php)
|
93 |
add_filter( 'display_post_states', array( __CLASS__, 'add_post_state' ), 10, 2 );
|
@@ -660,6 +661,11 @@ class Classic_Editor {
|
|
660 |
}
|
661 |
|
662 |
public static function enqueue_block_editor_scripts() {
|
|
|
|
|
|
|
|
|
|
|
663 |
$editors = self::get_enabled_editors_for_post( $GLOBALS['post'] );
|
664 |
|
665 |
if ( ! $editors['classic_editor'] ) {
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org/plugins/classic-editor/
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
|
8 |
+
* Version: 1.6.1
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
13 |
* Text Domain: classic-editor
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: 4.9
|
16 |
+
* Tested up to: 5.8
|
17 |
* Requires PHP: 5.2.4
|
18 |
*
|
19 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
88 |
add_action( 'admin_head-edit.php', array( __CLASS__, 'add_edit_php_inline_style' ) );
|
89 |
|
90 |
add_action( 'edit_form_top', array( __CLASS__, 'remember_classic_editor' ) );
|
91 |
+
add_filter( 'block_editor_settings_all', array( __CLASS__, 'remember_block_editor' ), 10, 2 );
|
92 |
|
93 |
// Post state (edit.php)
|
94 |
add_filter( 'display_post_states', array( __CLASS__, 'add_post_state' ), 10, 2 );
|
661 |
}
|
662 |
|
663 |
public static function enqueue_block_editor_scripts() {
|
664 |
+
// get_enabled_editors_for_post() needs a WP_Post or post_ID.
|
665 |
+
if ( empty( $GLOBALS['post'] ) ) {
|
666 |
+
return;
|
667 |
+
}
|
668 |
+
|
669 |
$editors = self::get_enabled_editors_for_post( $GLOBALS['post'] );
|
670 |
|
671 |
if ( ! $editors['classic_editor'] ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pento, youknowriad, desrosj, luciano-croce
|
3 |
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
|
4 |
Requires at least: 4.9
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.6
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -29,6 +29,10 @@ By default, this plugin hides all functionality available in the new block edito
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
32 |
= 1.6 =
|
33 |
* Updated for WordPress 5.5.
|
34 |
* Fixed minor issues with calling deprecated functions, needlessly registering uninstall hook, and capitalization of some strings.
|
2 |
Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pento, youknowriad, desrosj, luciano-croce
|
3 |
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
|
4 |
Requires at least: 4.9
|
5 |
+
Tested up to: 5.8
|
6 |
+
Stable tag: 1.6.1
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
= 1.6.1 =
|
33 |
+
* Fixed a warning on the block editor based widgets screen.
|
34 |
+
* Fixed use of a deprecated filter.
|
35 |
+
|
36 |
= 1.6 =
|
37 |
* Updated for WordPress 5.5.
|
38 |
* Fixed minor issues with calling deprecated functions, needlessly registering uninstall hook, and capitalization of some strings.
|