wp-includes/class-wp-theme-json.php:749Processes pseudo-selectors for any node (block or variation).
$nodearray$base_selectorstring$settingsarray$block_namestringarray private static function process_pseudo_selectors( $node, $base_selector, $settings, $block_name ) { $pseudo_declarations = array(); if ( ! isset( static::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] ) ) { return $pseudo_declarations; } foreach ( static::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] as $pseudo_selector ) { if ( isset( $node[ $pseudo_selector ] ) ) { $combined_selector = static::append_to_selector( $base_selector, $pseudo_selector ); $declarations = static::compute_style_properties( $node[ $pseudo_selector ], $settings, null, null ); $pseudo_declarations[ $combined_selector ] = $declarations; } } return $pseudo_declarations; }2 changes between 7.0.4 and 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
$block_metadata added.verified against source$style_variation added.verified against sourcesrc/wp-includes/class-wp-theme-json.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.