[wp-trac] [WordPress Trac] #56284: Site Editor: Pass correct context into get_block_categories

WordPress Trac noreply at wordpress.org
Wed Jul 27 12:25:23 UTC 2022


#56284: Site Editor: Pass correct context into get_block_categories
--------------------------+---------------------
 Reporter:  Mamaduka      |       Owner:  gziolo
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1
Component:  Editor        |     Version:  5.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by gziolo):

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


Comment:

 In [changeset:"53784" 53784]:
 {{{
 #!CommitTicketReference repository="" revision="53784"
 Site Editor: Pass correct context into get_block_categories

 Site Editor passed incorrectly global $post as a context when setting up
 block categories. Instead, it should pass $block_editor_context, since
 global $post is null in this file.

 Props Mamaduka.
 Fixes #56284.
 }}}

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


More information about the wp-trac mailing list