From 19cf620f186f571014ba9440a741ee9458e96512 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Mon, 1 Jul 2024 13:51:50 -0700 Subject: [PATCH] fixup! Build fully Unicode-aware slugifier. --- src/wp-includes/formatting.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 8bd82f4e79c47..f95404bffd901 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -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.