Ticket #10823: sanitize_title_with_dashes.patch
File sanitize_title_with_dashes.patch, 540 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
828 828 } 829 829 830 830 $title = strtolower($title); 831 $title = preg_replace('/& .+?;/', '', $title); // kill entities831 $title = preg_replace('/&[a-z0-9]+?;/', '', $title); // kill entities 832 832 $title = str_replace('.', '-', $title); 833 833 $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); 834 834 $title = preg_replace('/\s+/', '-', $title);