mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 08:36:04 +01:00
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:
parent
9a3c2cc58b
commit
42abc00010
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user