Make WordPress Core

Changes between Version 48 and Version 54 of Ticket #59313


Ignore:
Timestamp:
09/18/2023 03:42:08 PM (19 months ago)
Author:
Bernhard Reiter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59313 – Description

    v48 v54  
    4141- #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]).
    4242  - 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]).
    4445- 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]).
    4546- 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]).