Skip to content

Commit

Permalink
fixup! Build fully Unicode-aware slugifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Jul 1, 2024
1 parent 3b332b3 commit 19cf620
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/wp-includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2552,8 +2552,6 @@ function slugify( string $sluggee ): string {
$state = 0;
$code_point = utf8_read_next_code_point( $sluggee, $at, $state, $matched_bytes );
$at += $matched_bytes;
$code_point_hex = dechex( $code_point );
$char = substr( $sluggee, $at - $matched_bytes, $matched_bytes );

/*
* Replace invalid UTF-8 with a dash.
Expand Down

0 comments on commit 19cf620

Please sign in to comment.