Changeset 61061 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 10/25/2025 06:22:07 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r61053 r61061 2295 2295 2296 2296 if ( 'save' === $context ) { 2297 // Convert  , &ndash, and &mdash to hyphens.2298 $title = str_replace( array( '%c2%a0', '%e2%80%9 3', '%e2%80%94' ), '-', $title );2299 // Convert  , &ndash, and &mdash HTML entities to hyphens.2300 $title = str_replace( array( ' ', '&# 160;', '–', '–', '—', '—' ), '-', $title );2297 // Convert  , non-breaking hyphen, &ndash, and &mdash to hyphens. 2298 $title = str_replace( array( '%c2%a0', '%e2%80%91', '%e2%80%93', '%e2%80%94' ), '-', $title ); 2299 // Convert  , non-breaking hyphen, &ndash, and &mdash HTML entities to hyphens. 2300 $title = str_replace( array( ' ', '‑', ' ', '–', '–', '—', '—' ), '-', $title ); 2301 2301 // Convert forward slash to hyphen. 2302 2302 $title = str_replace( '/', '-', $title );
Note: See TracChangeset
for help on using the changeset viewer.