Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jun 17, 2024
1 parent e8f3107 commit 30a66f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -2837,13 +2837,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 );
}

Expand Down

0 comments on commit 30a66f1

Please sign in to comment.