mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@57585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user