Ticket #6697: bug6697.2.patch
| File bug6697.2.patch, 484 bytes (added by pauamma, 4 years ago) |
|---|
-
wp-includes/formatting.php
old new 702 702 $title = preg_replace('/\s+/', '-', $title); 703 703 $title = preg_replace('|-+|', '-', $title); 704 704 $title = trim($title, '-'); 705 // Use uppercase hex digits in URI-escaped characters 706 $title = preg_replace_callback( '/%[a-f0-9][a-f0-9]/', 707 create_function( '$m', 'return strtoupper( $m[0] );' ), 708 $title ); 705 709 706 710 return $title; 707 711 }
