[wp-trac] [WordPress Trac] #51819: use_block_editor_for_post() not avaialble by front end

WordPress Trac noreply at wordpress.org
Thu Jun 23 18:46:33 UTC 2022


#51819: use_block_editor_for_post() not avaialble by front end
-------------------------------+---------------------
 Reporter:  theMikeD           |       Owner:  jorbin
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  6.1
Component:  Editor             |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+---------------------
Changes (by jorbin):

 * owner:  (none) => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53559" 53559]:
 {{{
 #!CommitTicketReference repository="" revision="53559"
 Editor: Universalize functions for checking block editor status.

 `use_block_editor_for_post_type` and `use_block_editor_for_post` can be
 very useful in more contexts than wp-admin, especially when a site is in
 transition. For example, you may want to do things on init that are
 different.

 Neither function depends on other functions that are available only in wp-
 admin (other than use_block_editor_for_post() relying on
 use_block_editor_for_post_type() and an admin-referrer check that's
 historically gated by a query variable and now also gated by is_admin),
 therefore  moving them to wp-includes seems both feasible and beneficial

 Props ethitter, jorbin.
 Fixes #51819.
 }}}

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


More information about the wp-trac mailing list