Skip to content

Commit

Permalink
Remove old edit from initial look at reducing specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jan 25, 2024
1 parent ac4ad95 commit e6ba6a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,7 @@ protected static function get_blocks_metadata() {
}

foreach ( $blocks as $block_name => $block_type ) {
/* $root_selector = wp_get_block_css_selector( $block_type ); */
$root_selector = ':where(' . wp_get_block_css_selector( $block_type ) . ')';
$root_selector = wp_get_block_css_selector( $block_type );

static::$blocks_metadata[ $block_name ]['selector'] = $root_selector;
static::$blocks_metadata[ $block_name ]['selectors'] = static::get_block_selectors( $block_type, $root_selector );
Expand Down

0 comments on commit e6ba6a7

Please sign in to comment.