Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jul 9, 2024
1 parent fe13f3b commit b4a35ec
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 @@ -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 );
}

Expand Down

0 comments on commit b4a35ec

Please sign in to comment.