Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (17 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r6355 r6364  
    774774 */
    775775function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
    776     if ( 'parent' == $field  || 'term_id' == $field || 'count' == $field
    777         || 'term_group' == $field )
     776    if ( 'parent' == $field  || 'term_id' == $field || 'count' == $field || 'term_group' == $field )
    778777        $value = (int) $value;
    779778
     
    12101209        $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s AND term_id != %d", $slug, $args['term_id'] );
    12111210    else
    1212         $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s $where", $slug );
     1211        $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug );
    12131212
    12141213    if ( $wpdb->get_var( $query ) ) {
     
    14721471 */
    14731472function update_object_term_cache($object_ids, $object_type) {
    1474     global $wpdb;
    1475 
    14761473    if ( empty($object_ids) )
    14771474        return;
Note: See TracChangeset for help on using the changeset viewer.