[wp-trac] [WordPress Trac] #46195: is_block_editor() returns false in the block editor

WordPress Trac noreply at wordpress.org
Fri Mar 1 21:16:20 UTC 2019


#46195: is_block_editor() returns false in the block editor
-------------------------------------+-----------------------------
 Reporter:  Chouby                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.1.1
Component:  Editor                   |     Version:  5.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by desrosj):

 Thanks for spotting that, @Chouby. I think that
 [attachment:"46195.3.diff"] would solve the issue with new posts in a
 backward compatible way. If, after a new post is created,
 `use_bloc_editor_for_post()` returns `true`, the `is_block_editor`
 property can be updated. This is similar to what is happening now, just
 moved down and only when creating a new post.

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


More information about the wp-trac mailing list