From 71abc20def8957da2f5c7e44d902669b081b2b69 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 14 Jan 2019 05:38:41 +0000 Subject: [PATCH] Formatting: Remove soft hyphens when sanitising titles. Props andg. Fixes #45378. git-svn-id: https://develop.svn.wordpress.org/trunk@44579 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index e082509203..4124b69287 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -2232,6 +2232,8 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa // Strip these characters entirely $title = str_replace( array( + // soft hyphens + '%c2%ad', // iexcl and iquest '%c2%a1', '%c2%bf',