Formatting: Remove soft hyphens when sanitising titles.

Props andg.
Fixes #45378.


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


git-svn-id: http://core.svn.wordpress.org/trunk@44410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-14 05:39:51 +00:00
parent fcd66d09d9
commit 10c66fb426
2 changed files with 3 additions and 1 deletions

View File

@ -2232,6 +2232,8 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa
// Strip these characters entirely // Strip these characters entirely
$title = str_replace( $title = str_replace(
array( array(
// soft hyphens
'%c2%ad',
// iexcl and iquest // iexcl and iquest
'%c2%a1', '%c2%a1',
'%c2%bf', '%c2%bf',

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-beta1-44578'; $wp_version = '5.1-beta1-44579';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.