[wp-trac] [WordPress Trac] #62046: `render_block_context` filter works differently on top-level vs. inner blocks
WordPress Trac
noreply at wordpress.org
Fri Jan 17 21:36:06 UTC 2025
#62046: `render_block_context` filter works differently on top-level vs. inner
blocks
---------------------------------------------+------------------------
Reporter: dlh | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Editor | Version: 5.9
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch commit | Focuses:
---------------------------------------------+------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"59662" 59662]:
{{{
#!CommitTicketReference repository="" revision="59662"
Editor: Improve consistency of `render_block_context` filter.
This ensures that when block context is filtered via
`render_block_context`, the filtered value is provided as available
context to inner blocks.
For backwards compatibility reasons, filtered context is added to inner
block context regardless of whether that block has declared support via
the `uses_context` property.
Props mukesh27, flixos90, gziolo, dlh, joemcgill, santosguillamot.
Fixes #62046.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62046#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list