[wp-trac] [WordPress Trac] #51612: `render_block_data` for nested blocks - WP_Block::render vs render_block
WordPress Trac
noreply at wordpress.org
Wed Oct 6 18:47:25 UTC 2021
#51612: `render_block_data` for nested blocks - WP_Block::render vs render_block
---------------------------------------------+-----------------------------
Reporter: gaambo | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Future Release
Component: Editor | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by azaozz):
* owner: (none) => azaozz
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"51894" 51894]:
{{{
#!CommitTicketReference repository="" revision="51894"
Apply the `pre_render_block`, `render_block_data`, and
`render_block_context` filters when rendering inner/nested blocks.
Introdices another param to these filters: `$parent_block` that is the
"parent" WP_Block instance for nested blocks and null for top level
blocks. Adds unit tests for the filters.
Props noisysocks, gaambo, azaozz.
Fixes #51612.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51612#comment:67>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list