Version Description
Fixed a bug where it may attempt to load the Block Editor for post types that do not support editor when users are allowed to switch editors.
Download this release
Release Info
Developer | azaozz |
Plugin | Classic Editor |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- classic-editor.php +6 -1
- readme.txt +5 -1
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.
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
@@ -449,6 +449,11 @@ class Classic_Editor {
|
|
449 |
$settings = self::get_settings();
|
450 |
$editors = self::get_enabled_editors_for_post( $post );
|
451 |
|
|
|
|
|
|
|
|
|
|
|
452 |
// Open the default editor when no $post and for "Add New" links.
|
453 |
if ( empty( $post->ID ) || $post->post_status === 'auto-draft' ) {
|
454 |
if ( $settings['editor'] === 'classic' ) {
|
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.1
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
449 |
$settings = self::get_settings();
|
450 |
$editors = self::get_enabled_editors_for_post( $post );
|
451 |
|
452 |
+
// If no editor is supported, pass through `$use_block_editor`.
|
453 |
+
if ( ! $editors['block_editor'] && ! $editors['classic_editor'] ) {
|
454 |
+
return $use_block_editor;
|
455 |
+
}
|
456 |
+
|
457 |
// Open the default editor when no $post and for "Add New" links.
|
458 |
if ( empty( $post->ID ) || $post->post_status === 'auto-draft' ) {
|
459 |
if ( $settings['editor'] === 'classic' ) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: azaozz, melchoyce, chanthaboune, alexislloyd, pento, youknowriad,
|
|
3 |
Tags: editor, classic editor, block editor, gutenberg
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag: 1.
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -16,6 +16,7 @@ Classic Editor is an official plugin maintained by the WordPress team that resto
|
|
16 |
By default, this plugin hides all functionality available in the new Block Editor ("Gutenberg").
|
17 |
|
18 |
At a glance, this plugin adds the following:
|
|
|
19 |
* Administrators can select the default editor for all users.
|
20 |
* Administrators can allow users to change their default editor.
|
21 |
* When allowed, the users can choose which editor to use for each post.
|
@@ -29,6 +30,9 @@ Classic Editor is an official WordPress plugin, and will be maintained until at
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
32 |
= 1.0 =
|
33 |
Updated for WordPress 5.0.
|
34 |
Changed all "Gutenberg" names/references to "Block Editor".
|
3 |
Tags: editor, classic editor, block editor, gutenberg
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 1.1
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
16 |
By default, this plugin hides all functionality available in the new Block Editor ("Gutenberg").
|
17 |
|
18 |
At a glance, this plugin adds the following:
|
19 |
+
|
20 |
* Administrators can select the default editor for all users.
|
21 |
* Administrators can allow users to change their default editor.
|
22 |
* When allowed, the users can choose which editor to use for each post.
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 1.1 =
|
34 |
+
Fixed a bug where it may attempt to load the Block Editor for post types that do not support editor when users are allowed to switch editors.
|
35 |
+
|
36 |
= 1.0 =
|
37 |
Updated for WordPress 5.0.
|
38 |
Changed all "Gutenberg" names/references to "Block Editor".
|