Plugin Directory

Changeset 1987367 for classic-editor


Ignore:
Timestamp:
12/07/2018 02:19:30 AM (7 years ago)
Author:
azaozz
Message:

Classic Editor: fix bug attempting to load the Block Editor.

Location:
classic-editor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • classic-editor/trunk/classic-editor.php

    r1986885 r1987367  
    450450        $editors = self::get_enabled_editors_for_post( $post );
    451451
     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
    452457        // Open the default editor when no $post and for "Add New" links.
    453458        if ( empty( $post->ID ) || $post->post_status === 'auto-draft' ) {
  • classic-editor/trunk/readme.txt

    r1987007 r1987367  
    1717
    1818At a glance, this plugin adds the following:
     19
    1920* Administrators can select the default editor for all users.
    2021* Administrators can allow users to change their default editor.
     
    2930
    3031== Changelog ==
     32
     33= 1.1 =
     34Fixed 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.
    3135
    3236= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.