Changeset 36775 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 02/29/2016 04:41:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r36578 r36775 1585 1585 1586 1586 $title = strtolower($title); 1587 $title = preg_replace('/&.+?;/', '', $title); // kill entities1588 $title = str_replace('.', '-', $title);1589 1587 1590 1588 if ( 'save' == $context ) { 1591 1589 // Convert nbsp, ndash and mdash to hyphens 1592 1590 $title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title ); 1591 // Convert nbsp, ndash and mdash HTML entities to hyphens 1592 $title = str_replace( array( ' ', ' ', '–', '–', '—', '—' ), '-', $title ); 1593 1593 1594 1594 // Strip these characters entirely … … 1612 1612 $title = str_replace( '%c3%97', 'x', $title ); 1613 1613 } 1614 1615 $title = preg_replace('/&.+?;/', '', $title); // kill entities 1616 $title = str_replace('.', '-', $title); 1614 1617 1615 1618 $title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
Note: See TracChangeset
for help on using the changeset viewer.