Skip to content

Commit

Permalink
Selector parsing should allow cap I,S modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 29, 2024
1 parent 907ba8d commit 9ecaab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-includes/html-api/class-wp-css-selectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,11 +823,13 @@ public static function parse( string $input, int &$offset ): ?self {
$attr_modifier = null;
switch ( $input[ $updated_offset ] ) {
case 'i':
case 'I':
$attr_modifier = WP_CSS_Attribute_Selector::MODIFIER_CASE_INSENSITIVE;
++$updated_offset;
break;

case 's':
case 'S':
$attr_modifier = WP_CSS_Attribute_Selector::MODIFIER_CASE_SENSITIVE;
++$updated_offset;
break;
Expand Down

0 comments on commit 9ecaab5

Please sign in to comment.