Ticket #10823: 10823.2.diff
File 10823.2.diff, 905 bytes (added by , 14 years ago) |
---|
-
wp-includes/formatting.php
755 755 $username = remove_accents( $username ); 756 756 // Kill octets 757 757 $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username ); 758 $username = preg_replace( '/& .+?;/', '', $username ); // Kill entities758 $username = preg_replace( '/&\w+?;/', '', $username ); // Kill entities 759 759 760 760 // If strict, reduce to ASCII for max portability. 761 761 if ( $strict ) … … 845 845 } 846 846 847 847 $title = strtolower($title); 848 $title = preg_replace('/& .+?;/', '', $title); // kill entities848 $title = preg_replace('/&\w.+?;/', '', $title); // kill entities 849 849 $title = str_replace('.', '-', $title); 850 850 $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); 851 851 $title = preg_replace('/\s+/', '-', $title);