From d6687180eff7e77bc29507e98ae4fec5b645d955 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Mon, 23 May 2022 13:46:18 +0100 Subject: [PATCH] Global Styles: Button Element: update button element selector --- lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php b/lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php index 6ce14dd5ba2efe..0331616fb1b9e5 100644 --- a/lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php +++ b/lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php @@ -25,7 +25,7 @@ class WP_Theme_JSON_6_1 extends WP_Theme_JSON_6_0 { 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', - 'button' => '.wp-element-button, .wp-block-button, button', // We have the .wp-block-button class so that this will target older buttons that have been serialized. + 'button' => '.wp-element-button, .wp-block-button__link', // We have the .wp-block-button__link class so that this will target older buttons that have been serialized. ); /** * Returns the metadata for each block.