Changeset 60055
- Timestamp:
- 03/19/2025 06:44:41 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r59854 r60055 2907 2907 $element_pseudo_allowed, 2908 2908 static function ( $pseudo_selector ) use ( $selector ) { 2909 return str_contains( $selector, $pseudo_selector ); 2909 /* 2910 * Check if the pseudo selector is in the current selector, 2911 * ensuring it is not followed by a dash (e.g., :focus should not match :focus-visible). 2912 */ 2913 return preg_match( '/' . preg_quote( $pseudo_selector, '/' ) . '(?!-)/', $selector ) === 1; 2910 2914 } 2911 2915 )
Note: See TracChangeset
for help on using the changeset viewer.