Changeset 5700 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/14/2007 02:25:30 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5658 r5700 99 99 $wpdb->query("UPDATE $wpdb->terms SET slug = '$slug' WHERE term_id = '$term_id'"); 100 100 } 101 101 102 102 $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"); 103 103 … … 136 136 wp_update_term_count($terms, $taxonomy); 137 137 } 138 138 139 139 // TODO clear the cache 140 140 } … … 240 240 $wpdb->query("UPDATE $wpdb->terms SET slug = '$slug' WHERE term_id = '$term_id'"); 241 241 } 242 242 243 243 $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"); 244 244 … … 301 301 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); 302 302 } 303 303 304 304 /** 305 305 * Given an array of terms, returns those that are defined term slugs. Ignores integers. … … 317 317 return $wpdb->get_col("SELECT slug FROM $wpdb->terms WHERE slug IN ($terms)"); 318 318 } 319 319 320 320 /** 321 321 * Relates an object (post, link etc) to a term and taxonomy type. Creates the term and taxonomy … … 332 332 if ( ! is_taxonomy($taxonomy) ) 333 333 return false; 334 334 335 335 if ( !is_array($terms) ) 336 336 $terms = array($terms);
Note: See TracChangeset
for help on using the changeset viewer.