[wp-trac] [WordPress Trac] #51612: `render_block_data` for nested blocks - WP_Block::render vs render_block
WordPress Trac
noreply at wordpress.org
Mon Nov 16 00:46:10 UTC 2020
#51612: `render_block_data` for nested blocks - WP_Block::render vs render_block
---------------------------------------------+-------------------------
Reporter: gaambo | Owner: noisysocks
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Editor | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-------------------------
Changes (by noisysocks):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"49608" 49608]:
{{{
#!CommitTicketReference repository="" revision="49608"
Editor: Move pre_render_block, render_block_data, render_block_context
Move the pre_render_block, render_block_data, and render_block_context
filters from render_block() to WP_Block. This ensures that they are
called for all blocks, including nested blocks, not just top-level
blocks.
Fixes #51612.
Props gaambo, gziolo, TimothyBlynJacobs.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51612#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list