mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user