Changes between Version 5 and Version 6 of Ticket #59313
- Timestamp:
- 09/11/2023 01:49:41 PM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59313 – Description
v5 v6 41 41 - Implement `get_hooked_blocks()` to receive a list of blocks hooked into a given "anchor" block ([https://github.com/WordPress/wordpress-develop/pull/5158/commits/cdcfbcc1117566df0b608f1875d50480b92111ad see]). 42 42 - Use that to implement `insert_hooked_blocks`, and call the latter alongside `_inject_theme_attribute_in_template_part_block` in a newly written visitor function that's passed as `$callback` to `serialize_blocks` ([https://github.com/WordPress/wordpress-develop/pull/5158/commits/c897d86393c2b434421894a776c6e2b75209a186 see]). 43 - Apply automatic insertion of hooked blocks to block patterns ( [https://github.com/WordPress/wordpress-develop/pull/5158/commits/600e55de0513c27e1625f87f3a23435f8d8e0a03 see]).43 - Apply automatic insertion of hooked blocks to block patterns (see [https://github.com/WordPress/wordpress-develop/pull/5158/commits/600e55de0513c27e1625f87f3a23435f8d8e0a03 here] and [https://github.com/WordPress/wordpress-develop/pull/5158/commits/b1a82fe1177a4a8bf253db2aa42250b5f7025536 here]). 44 44 - Add a filter to allow people to e.g. limit automatic insertion of hooked blocks to a certain template or template part type only ([https://github.com/WordPress/wordpress-develop/pull/5158/commits/c897d86393c2b434421894a776c6e2b75209a186 also see]). 45 45 - This somewhat informs the architecture of the code (e.g. function signatures, passing of `$block_template` context) and goes beyond what is currently in Gutenberg.