[wp-trac] [WordPress Trac] #46195: is_block_editor() returns false in the block editor
WordPress Trac
noreply at wordpress.org
Thu Feb 7 13:21:16 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 Chouby):
I tested the patch and, for me, it doesn't work for new posts. Because the
post ID is created later in post-new.php. [attachment:"46195.2.diff"] aims
to fix this.
However this is not fully backward compatible as
`use_block_editor_for_post_type` won't honor the filter
`use_block_editor_for_post` for new posts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46195#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list