From 89a76f3cbb70c46289866c608446566998ddf9f1 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Thu, 31 Mar 2022 12:20:43 +1100 Subject: [PATCH] While porting the get_block_classes in https://github.com/WordPress/gutenberg/pull/38816 a `self::ROOT_BLOCK_SELECTOR` made it in. It should be static to retain the inheritance powers introduced in https://github.com/WordPress/gutenberg/pull/38671 --- lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php b/lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php index e4d0aab1155e03..6a67856287c1fb 100644 --- a/lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php +++ b/lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php @@ -103,7 +103,7 @@ protected function get_block_classes( $style_nodes ) { $block_rules .= static::to_ruleset( $selector_duotone, $declarations_duotone ); } - if ( self::ROOT_BLOCK_SELECTOR === $selector ) { + if ( static::ROOT_BLOCK_SELECTOR === $selector ) { $block_rules .= '.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }'; $block_rules .= '.wp-site-blocks > .alignright { float: right; margin-left: 2em; }'; $block_rules .= '.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }';