Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions components/DataLiberation/URL/class-cssprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace WordPress\DataLiberation\URL;

use function WordPress\Encoding\utf8_codepoint_at;
use function WordPress\Encoding\codepoint_to_utf8_bytes;
use function WordPress\Encoding\compat\_wp_scan_utf8;
use function WordPress\Encoding\utf8_ord;
use function WordPress\Encoding\wp_scrub_utf8;

/**
Expand Down Expand Up @@ -1506,7 +1506,7 @@ private function consume_ident_start_codepoint( $at ): int {
}

$codepoint_byte_length = $new_at - $at;
$codepoint = utf8_codepoint_at( $this->css, $at );
$codepoint = utf8_ord( substr( $this->css, $at, $codepoint_byte_length ) );
if ( null !== $codepoint && $codepoint >= 0x80 ) {
return $codepoint_byte_length;
}
Expand Down