Skip to content

Commit

Permalink
While porting the get_block_classes in #38816 a `self::ROOT_BLOCK_SEL…
Browse files Browse the repository at this point in the history
…ECTOR` made it in. It should be static to retain the inheritance powers introduced in #38671
  • Loading branch information
ramonjd committed Mar 31, 2022
1 parent aa3193a commit 89a76f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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; }';
Expand Down

0 comments on commit 89a76f3

Please sign in to comment.