Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove redundant comments
  • Loading branch information
MaggieCabrera authored and scruffian committed Nov 17, 2025
commit 82ed4a3c3f7d74946870e249347e632e302fe2fb
7 changes: 0 additions & 7 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,21 +702,14 @@ protected static function schema_in_root_and_per_origin( $schema ) {
private static function process_pseudo_selectors( $node, $base_selector, $settings, $block_name ) {
$pseudo_declarations = array();

// Check if this block supports pseudo-selectors
if ( ! isset( static::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] ) ) {
return $pseudo_declarations;
}

// Process each valid pseudo-selector for this block
foreach ( static::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] as $pseudo_selector ) {
if ( isset( $node[ $pseudo_selector ] ) ) {
// Create the combined selector (base + pseudo-selector)
$combined_selector = static::append_to_selector( $base_selector, $pseudo_selector );

// Compute the style properties for this pseudo-selector
$declarations = static::compute_style_properties( $node[ $pseudo_selector ], $settings, null, null );

// Add to the declarations array
$pseudo_declarations[ $combined_selector ] = $declarations;
}
}
Expand Down