[wp-trac] [WordPress Trac] #45263: The posts page is editable in the block editor

WordPress Trac noreply at wordpress.org
Fri Nov 30 01:08:42 UTC 2018


#45263: The posts page is editable in the block editor
---------------------------------------+---------------------
 Reporter:  Chouby                     |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  5.0
Component:  Editor                     |     Version:  5.0
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots fixed-5.0  |     Focuses:
---------------------------------------+---------------------

Comment (by littler.chicken):

 This is a local setup using PHP7.2, 5.0-RC1-43946, Twenty Nineteen, and no
 plugins active.

 I have a static front page set, and then a page assigned to be the posts
 page (published). If I disable the static front page, but leave the posts
 page, the behavior is unchanged. If I activate Gutenberg, the posts page
 continues to load in the block editor.

 With Gutenberg active, if I add the `classic-editor` query string to the
 URL by hand, I get a modal asking me to confirm if I want to use the
 Classic Editor for content previously edited in Gutenberg. When I confirm,
 the redirect white screens with a JavaScript error:

 {{{
 Uncaught TypeError: Cannot read property 'then' of undefined at
 post.php?post=79&action=edit&classic-editor:1808
 }}}

 related to this script:

 {{{
 window._wpLoadBlockEditor.then( function() {
         wp.data.dispatch( 'core/edit-post'
 ).setAvailableMetaBoxesPerLocation( {"side":[],"normal":[],"advanced":[]}
 );
 } );
 }}}

 If I deactivate Gutenberg and leave the query string in, the posts page
 loads in the block editor.

 If I set the front page and the posts page to be the same, I get the
 warning on the Reading settings page, but the page continues to be
 editable in the block editor.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45263#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list