From 5aaefedb85f7d1028ab6b7307e8f449a2f4ed2e1 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 7 Feb 2024 14:45:11 +0800 Subject: [PATCH] Update pattern overrides handler to retrieve attribute value from new `values` property --- src/wp-includes/block-bindings/pattern-overrides.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/block-bindings/pattern-overrides.php b/src/wp-includes/block-bindings/pattern-overrides.php index 6f719101ef5dd..eabd874660b29 100644 --- a/src/wp-includes/block-bindings/pattern-overrides.php +++ b/src/wp-includes/block-bindings/pattern-overrides.php @@ -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 ); } /**