Formatting: Strip object replacement characters from slugs.

This changeset prevents object replacement characters – UTF-8 `%ef%bf%bc`, used as a placeholder in text for an otherwise unspecified object – from being added to slugs.

Props cantuaria, costdev, audrasjb, SergeyBiryukov, archon810, maciejmackowiak, BaneD, markparnell, ironprogrammer, dmsnell, nikkigagency, webprom.
Fixes #55117.

Built from https://develop.svn.wordpress.org/trunk@54474


git-svn-id: http://core.svn.wordpress.org/trunk@54033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-10-11 10:28:16 +00:00
parent 85975c0104
commit 907986ff68
2 changed files with 2 additions and 1 deletions

View File

@ -2329,6 +2329,7 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa
'%e2%80%ad', // Left-to-right override.
'%e2%80%ae', // Right-to-left override.
'%ef%bb%bf', // Byte order mark.
'%ef%bf%bc', // Object replacement character.
),
'',
$title

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-beta3-54473';
$wp_version = '6.1-beta3-54474';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.