From b4a35ecd02601363b53fba272f0030db6d1fc460 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Mon, 17 Jun 2024 14:00:15 +1000 Subject: [PATCH] Update comment. --- src/wp-includes/class-wp-theme-json.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 6f068fa05524b..180cb43e8fc31 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -2915,13 +2915,8 @@ static function ( $pseudo_selector ) use ( $selector ) { } } - // 7. Generate and append any custom CSS rules pertaining to nested block style variations. - if ( isset( $node['css'] ) && ! $is_root_selector ) { - $block_rules .= $this->process_blocks_custom_css( $node['css'], $selector ); - } - // 7. Generate and append any custom CSS rules. - if ( isset( $node['css'] ) ) { + if ( isset( $node['css'] ) && ! $is_root_selector ) { $block_rules .= $this->process_blocks_custom_css( $node['css'], $selector ); }