Changes between Version 39 and Version 48 of Ticket #59313
- Timestamp:
- 09/18/2023 11:15:26 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59313 – Description
v39 v48 39 39 - Note that `_inject_theme_attribute_in_block_template_content` is still used in another spot: The Template Part block’s render.php (i.e. in GB). We might also want to replace that with `_inject_theme_attribute_in_template_part_block` so that we can deprecate `_inject_theme_attribute_in_block_template_content`. 40 40 - #59346: Add `block_hooks` field to `WP_Block_Type`, `block.json` loading, REST API endpoint, etc (see [https://github.com/WordPress/wordpress-develop/pull/5158/commits/3ad1fd7caac337e10d385fee2619b53ceb4f7c0a here] and [https://github.com/WordPress/wordpress-develop/pull/5158/commits/37496a0e982fe48b86cdbecbb4c06a3eff5e3ec4 here]). 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]).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 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]).