From 907986ff68cc4e6ebb7030851a4e0f3c22424dda Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 11 Oct 2022 10:28:16 +0000 Subject: [PATCH] Formatting: Strip object replacement characters from slugs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- wp-includes/formatting.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index a76e954e89..a9a43bda4d 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 7077d4f5b1..2f06feb732 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.