Ticket #3329: 3329.patch
File 3329.patch, 1.7 KB (added by , 15 years ago) |
---|
-
wp-includes/query.php
833 833 $where .= " AND DAYOFMONTH(post_date)='" . $q['day'] . "'"; 834 834 835 835 if ('' != $q['name']) { 836 $q['name'] = urlencode($q['name']); 836 837 $q['name'] = sanitize_title($q['name']); 837 838 $where .= " AND post_name = '" . $q['name'] . "'"; 838 839 } else if ('' != $q['pagename']) { -
wp-includes/link-template.php
97 97 $date[3], 98 98 $date[4], 99 99 $date[5], 100 $post->post_name,100 urlencode($post->post_name), 101 101 $post->ID, 102 102 $category, 103 103 $author, 104 $post->post_name,104 urlencode($post->post_name), 105 105 ); 106 106 $permalink = get_option('home') . str_replace($rewritecode, $rewritereplace, $permalink); 107 107 $permalink = user_trailingslashit($permalink, 'single'); -
wp-includes/formatting.php
341 341 342 342 function sanitize_title_with_dashes($title) { 343 343 $title = strip_tags($title); 344 // Preserve escaped octets.345 $title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);346 // Remove percent signs that are not part of an octet.347 $title = str_replace('%', '', $title);348 // Restore octets.349 $title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title);350 344 351 345 $title = remove_accents($title); 352 346 if (seems_utf8($title)) {