diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 4f28e74575..dd7d7861d1 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2294,10 +2294,10 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa $title = strtolower( $title ); if ( 'save' === $context ) { - // Convert  , &ndash, and &mdash to hyphens. - $title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title ); - // Convert  , &ndash, and &mdash HTML entities to hyphens. - $title = str_replace( array( ' ', ' ', '–', '–', '—', '—' ), '-', $title ); + // Convert  , non-breaking hyphen, &ndash, and &mdash to hyphens. + $title = str_replace( array( '%c2%a0', '%e2%80%91', '%e2%80%93', '%e2%80%94' ), '-', $title ); + // Convert  , non-breaking hyphen, &ndash, and &mdash HTML entities to hyphens. + $title = str_replace( array( ' ', '‑', ' ', '–', '–', '—', '—' ), '-', $title ); // Convert forward slash to hyphen. $title = str_replace( '/', '-', $title ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b15025734a..b780de778b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-beta1-61060'; +$wp_version = '6.9-beta1-61061'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.