From 9356d97222a60d228d60424dff9229783b4b28ca Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 25 Jan 2023 22:07:47 +0000 Subject: [PATCH] Editor: Fix undefined variable following [54805]. Props mamaduka, costdev, mukesh27. See #56974, #57067. git-svn-id: https://develop.svn.wordpress.org/trunk@55142 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme-json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 18b08f94dc46a..2e39b3c3530d2 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -2111,7 +2111,7 @@ public function get_styles_for_block( $block_metadata ) { // support features use the same custom selector. if ( isset( $feature_declarations[ $feature_selector ] ) ) { foreach ( $new_feature_declarations as $new_feature_declaration ) { - $feature_declarations[ $feature_selector ][] = $feature_declaration; + $feature_declarations[ $feature_selector ][] = $new_feature_declaration; } } else { $feature_declarations[ $feature_selector ] = $new_feature_declarations;