Ticket #6313: wp-includes-taxonomy.diff
File wp-includes-taxonomy.diff, 652 bytes (added by , 17 years ago) |
---|
-
taxonomy.php
743 743 return 0; 744 744 $where = $wpdb->prepare( "t.term_id = %d", $term ); 745 745 } else { 746 if ( '' === $ term= sanitize_title($term) )746 if ( '' === $sanitized = sanitize_title($term) ) 747 747 return 0; 748 $where = $wpdb->prepare( "t.slug = %s", $term ); 748 if ( 'post_tag' === $taxonomy ) { 749 $where = $wpdb->prepare( "(t.slug = %s OR t.name = %s)", $sanitized , $term ); 750 } else { 751 $where = $wpdb->prepare( "t.slug = %s", $sanitized ); 752 } 749 753 } 750 754 751 755 if ( !empty($taxonomy) )