Changes between Version 48 and Version 54 of Ticket #59313
- Timestamp:
- 09/18/2023 03:42:08 PM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59313 – Description
v48 v54 41 41 - #59383: 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 - We probably want to [https://github.com/WordPress/wordpress-develop/pull/5158/files#r1326013492 cache] this. 43 - 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 - #59385: Use that to implement `insert_hooked_block` and `insert_hooked_blocks`. 44 - 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]). 44 45 - 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]). 45 46 - 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]).