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:
parent
85975c0104
commit
907986ff68
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue