Make WordPress Core


Ignore:
Timestamp:
02/16/2024 12:53:16 PM (13 months ago)
Author:
gziolo
Message:

Editor: Merge uses_context defined by block bindings sources with block types

Adds logic that fixes the limitation for souces by allowing merging the uses_context defined by block bindings sources into supported block types. Each source defines the context it needs and it is added to the block types that are using the block bindings API.

Fixes #60525.
Props santosguillamot, gziolo, czapla, thekt12.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-bindings/pattern-overrides.php

    r57585 r57641  
    4040            'label'              => _x( 'Pattern Overrides', 'block bindings source' ),
    4141            'get_value_callback' => '_block_bindings_pattern_overrides_get_value',
     42            'uses_context'       => array( 'pattern/overrides' ),
    4243        )
    4344    );
Note: See TracChangeset for help on using the changeset viewer.