[wp-trac] [WordPress Trac] #53757: Widget editor calls get_block_categories() with incorrect arg type
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Sep  1 00:33:42 UTC 2021
    
    
  
#53757: Widget editor calls get_block_categories() with incorrect arg type
------------------------------------------+-----------------------
 Reporter:  Enchiridion                   |       Owner:  audrasjb
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.8.1
Component:  Widgets                       |     Version:  5.8
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------
Changes (by desrosj):
 * status:  reopened => closed
 * resolution:   => fixed
Comment:
 In [changeset:"51711" 51711]:
 {{{
 #!CommitTicketReference repository="" revision="51711"
 Widgets: Pass correct context to `get_block_categories()` calls.
 The `get_block_categories()` function expects either a `WP_Post` or a
 `WP_Block_Editor_Context` instance as the context argument, not a string.
 Follow-up to [50996], [50997].
 Props Enchiridion, pbearne, audrasjb, SergeyBiryukov.
 Merges [51700] to the 5.8 branch.
 Fixes #53757.
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53757#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list