Skip to content

Commit

Permalink
Added comment annotation.
Browse files Browse the repository at this point in the history
Removed value test as it's already checked in compute_properties function
  • Loading branch information
ramonjd committed Mar 15, 2024
1 parent bd089e7 commit 9a1b6f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,7 @@ private static function get_block_nodes( $theme_json, $selectors = array() ) {
* Gets the CSS rules for a particular block from theme.json.
*
* @since 6.1.0
* @since 6.6.0 Setting a min-height of HTML for background gradient or background size.
*
* @param array $block_metadata Metadata about the block to get styles for.
*
Expand Down Expand Up @@ -2643,7 +2644,7 @@ static function ( $pseudo_selector ) use ( $selector ) {

if ( $is_root_selector && (
'background-size' === $declaration['name'] && 'cover' === $declaration['value'] ||
'background' === $declaration['name'] && ! empty( $declaration['value'] )
'background' === $declaration['name']
) ) {
$should_set_root_min_height = true;
}
Expand Down

0 comments on commit 9a1b6f4

Please sign in to comment.