[wp-trac] [WordPress Trac] #53757: Widget editor calls get_block_categories() with incorrect arg type
WordPress Trac
noreply at wordpress.org
Tue Aug 31 13:37:45 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 | Focuses:
------------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"51700" 51700]:
{{{
#!CommitTicketReference repository="" revision="51700"
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.
Fixes #53757.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53757#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list