diff --git a/src/wp-includes/css-api/class-wp-css-token-processor.php b/src/wp-includes/css-api/class-wp-css-token-processor.php index e9b0e27e4bd7e..cf6c9ec7cf678 100644 --- a/src/wp-includes/css-api/class-wp-css-token-processor.php +++ b/src/wp-includes/css-api/class-wp-css-token-processor.php @@ -1387,6 +1387,11 @@ private function consume_ident_start_codepoint( $at ): int { return 1; } + // Other ASCII code points do not start an identifier. + if ( $this->css[ $at ] < "\x80" ) { + return 0; + } + $new_at = $at; $invalid_length = 0; if ( 1 !== _wp_scan_utf8( $this->css, $new_at, $invalid_length, null, 1 ) ) {