Ticket #5293: 5293.diff
File 5293.diff, 869 bytes (added by , 17 years ago) |
---|
-
wp-includes/formatting.php
323 323 $title = strip_tags($title); 324 324 $title = apply_filters('sanitize_title', $title); 325 325 326 if ( empty($title)) {326 if ( '' === $title || false === $title ) 327 327 $title = $fallback_title; 328 }329 328 330 329 return $title; 331 330 } -
wp-includes/taxonomy.php
699 699 return 0; 700 700 $where = $wpdb->prepare( "t.term_id = %d", $term ); 701 701 } else { 702 if ( !$term = sanitize_title($term) )702 if ( '' === $term = sanitize_title($term) ) 703 703 return 0; 704 704 $where = $wpdb->prepare( "t.slug = %s", $term ); 705 705 }