Make WordPress Core


Ignore:
Timestamp:
06/14/2007 02:25:30 AM (19 years ago)
Author:
ryan
Message:

Trim empty lines. Nothing but newline.

File:
1 edited

Legend:

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

    r5658 r5700  
    9999                $wpdb->query("UPDATE $wpdb->terms SET slug = '$slug' WHERE term_id = '$term_id'");
    100100        }
    101                
     101
    102102        $tt_id = $wpdb->get_var("SELECT tt.term_taxonomy_id FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = '$taxonomy' AND t.term_id = $term_id");
    103103
    … …  
    136136                wp_update_term_count($terms, $taxonomy);
    137137        }
    138        
     138
    139139        // TODO clear the cache
    140140}
    … …  
    240240                $wpdb->query("UPDATE $wpdb->terms SET slug = '$slug' WHERE term_id = '$term_id'");
    241241        }
    242                
     242
    243243        $tt_id = $wpdb->get_var("SELECT tt.term_taxonomy_id FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = '$taxonomy' AND t.term_id = $term_id");
    244244
    … …  
    301301        return $wpdb->get_row("SELECT tt.term_id, tt.term_taxonomy_id FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy as tt ON tt.term_id = t.term_id WHERE $where AND tt.taxonomy = '$taxonomy'", ARRAY_A);
    302302}
    303        
     303
    304304/**
    305305 * Given an array of terms, returns those that are defined term slugs.  Ignores integers.
    … …  
    317317        return $wpdb->get_col("SELECT slug FROM $wpdb->terms WHERE slug IN ($terms)");
    318318}
    319        
     319
    320320/**
    321321 * Relates an object (post, link etc) to a term and taxonomy type.  Creates the term and taxonomy
    … …  
    332332        if ( ! is_taxonomy($taxonomy) )
    333333                return false;
    334        
     334
    335335        if ( !is_array($terms) )
    336336                $terms = array($terms);
Note: See TracChangeset for help on using the changeset viewer.