Ticket #20338: formatting.php.patch
File formatting.php.patch, 1.0 KB (added by , 9 years ago) |
---|
-
wp-includes/formatting.php
1526 1526 $title = str_replace('.', '-', $title); 1527 1527 1528 1528 if ( 'save' == $context ) { 1529 // Convert nbsp, ndash and mdash to hyphens1530 $title = str_replace( array( ' %c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title );1529 // Convert curly, nbsp, ndash and mdash to hyphens 1530 $title = str_replace( array( '\'','%e2%80%99', '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title ); 1531 1531 1532 1532 // Strip these characters entirely 1533 1533 $title = str_replace( array( … … 1536 1536 // angle quotes 1537 1537 '%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba', 1538 1538 // curly quotes 1539 '%e2%80%98', '%e2%80%9 9', '%e2%80%9c', '%e2%80%9d',1539 '%e2%80%98', '%e2%80%9c', '%e2%80%9d', 1540 1540 '%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f', 1541 1541 // copy, reg, deg, hellip and trade 1542 1542 '%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2',