Skip to content

Commit e2f0318

Browse files
Formatting: Replace multiplication symbol with 'x' in slugs
1 parent 425bc36 commit e2f0318

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/wp-includes/formatting.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,9 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa
22842284
// Restore octets.
22852285
$title = preg_replace( '|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title );
22862286

2287+
// Convert multiplication sign and times entities to 'x'.
2288+
$title = str_replace( array( '×', '×', '×' ), 'x', $title );
2289+
22872290
if ( wp_is_valid_utf8( $title ) ) {
22882291
if ( function_exists( 'mb_strtolower' ) ) {
22892292
$title = mb_strtolower( $title, 'UTF-8' );

0 commit comments

Comments
 (0)