Make WordPress Core


Ignore:
Timestamp:
02/12/2024 08:47:16 AM (10 months ago)
Author:
youknowriad
Message:

Editor: Update pattern overrides attribute format.

Updates the pattern block's overrides attribute data structure and renames it to content.
This new format should prove more flexible for the future.

Props talldanwp, gziolo.
Fixes #60456.

File:
1 edited

Legend:

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

    r57526 r57585  
    2525    }
    2626    $block_id = $block_instance->attributes['metadata']['id'];
    27     return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, $attribute_name ), null );
     27    return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, 'values', $attribute_name ), null );
    2828}
    2929
Note: See TracChangeset for help on using the changeset viewer.