[wp-trac] [WordPress Trac] #59669: Block: Give `traverse_and_serialize_block(s)`' post-callback access to block instance
WordPress Trac
noreply at wordpress.org
Wed Nov 1 12:31:48 UTC 2023
#59669: Block: Give `traverse_and_serialize_block(s)`' post-callback access to
block instance
-------------------------------------------------+-------------------------
Reporter: Bernhard Reiter | Owner: Bernhard
| Reiter
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.4
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: has-patch has-unit-tests dev-feedback => has-patch has-unit-
tests commit dev-reviewed
* version: => trunk
Comment:
>it might pose problems for third parties that want to use
`traverse_and_serialize_block(s)` with a `$post_callback` that modifies
the current block (as that won't work, without the fix).
Good catch @bernhard-reiter flagging this fix.
As the bug (and functions) was(were) introduced in 6.4, [56970] LGTM for
backport to the 6.4 branch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59669#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list