Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #60525


Ignore:
Timestamp:
02/13/2024 02:39:37 PM (2 years ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60525 – Description

    initial v2  
    11While testing Block Bindings API, we realized that we don't have a robust mechanism for extending block context of supported block types. The approach to manually update every block type's `usesContext` in `block.json` file doesn’t scale at all. Hardocing the list of injected `useContext` entries is also limiting. We decided to formalize it in the registration of the block bindings source. This way, every author of the block bindings source can decide what entries from the block context they want to consume.
     2
     3Related changes proposed are also in the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/58554.