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.
Built from https://develop.svn.wordpress.org/trunk@57585


git-svn-id: http://core.svn.wordpress.org/trunk@57086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2024-02-12 08:49:12 +00:00
parent 9a3c2cc58b
commit 42abc00010
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ function _block_bindings_pattern_overrides_get_value( array $source_args, $block
return null;
}
$block_id = $block_instance->attributes['metadata']['id'];
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, $attribute_name ), null );
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, 'values', $attribute_name ), null );
}
/**

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57584';
$wp_version = '6.5-alpha-57585';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.