Plugin Directory


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.

File:
1 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' ) {
Note: See TracChangeset for help on using the changeset viewer.