[wp-trac] [WordPress Trac] #46195: is_block_editor() returns false in the block editor
WordPress Trac
noreply at wordpress.org
Wed Feb 6 15:46:06 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
-------------------------------------+-----------------------------
Changes (by desrosj):
* keywords: needs-patch => has-patch needs-testing
* focuses: => administration
Comment:
[attachment:"46195.diff"] moves the logic that sets the `is_block_editor`
property into the `WP_Screen::get()` method so it is properly set when the
`current_screen` action is triggered.
I tested with the Classic Editor plugin active, and all the different
combinations of plugin/user settings and user flows and each scenario
worked correctly for me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46195#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list