Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56531, comment 5


Ignore:
Timestamp:
09/25/2022 04:52:37 AM (2 years ago)
Author:
anrghg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56531, comment 5

    initial v1  
    2828                // Converts spaces and dashes to hyphen-minus.
    2929                $title = preg_replace( '/[\p{Zs}\p{Zl}\p{Zp}\x{2010}-\x{2015}\x{2212}]/u', '-', $title );
    30                 // Converts &, @, /, * and dots to hyphen-minus.
    31                 $title = str_replace( array( '&', '@', '/', '*', '·', '‧' ), '-', $title );
     30                // Converts &, <, >, @, /, * and dots to hyphen-minus.
     31                $title = str_replace( array( '&amp;', '&lt;', '&gt;', '@', '/', '*', '·', '‧' ), '-', $title );
    3232                // Converts times to 'x'.
    3333                $title = str_replace( '×', 'x', $title );