From 0ef73bb7bac2bda9196051755616bd18cec81a8e Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Thu, 7 Jul 2022 12:27:12 -0400 Subject: [PATCH] Add 'wp-block-button__link' to the link selector's ':not' collection --- 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 189e3694dd87f..4b753b00151a3 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 @@ -31,7 +31,7 @@ class WP_Theme_JSON_6_1 extends WP_Theme_JSON_6_0 { * @var string[] */ const ELEMENTS = array( - 'link' => 'a:not(.wp-element-button)', + 'link' => 'a:not(.wp-element-button, .wp-block-button__link)', 'heading' => 'h1, h2, h3, h4, h5, h6', 'h1' => 'h1', 'h2' => 'h2',