Changes between Version 54 and Version 62 of Ticket #59313
- Timestamp:
- 09/19/2023 07:39:18 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59313 – Description
v54 v62 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 - #59385: Use that to implement `insert_hooked_block` and `insert_hooked_blocks`. 43 - #59385: Use that to implement `insert_hooked_block`. 44 - Implement `insert_hooked_blocks` (to insert all hooked blocks for a given anchor block). 44 45 - 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]). 45 46 - 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]).