Changeset 18999 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 10/18/2011 09:01:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r18995 r18999 2118 2118 $tt_ids = array(); 2119 2119 $term_ids = array(); 2120 $new_tt_ids = array(); 2120 2121 2121 2122 foreach ( (array) $terms as $term) { … … 2140 2141 $wpdb->insert( $wpdb->term_relationships, array( 'object_id' => $object_id, 'term_taxonomy_id' => $tt_id ) ); 2141 2142 do_action( 'added_term_relationship', $object_id, $tt_id ); 2142 } 2143 2144 wp_update_term_count($tt_ids, $taxonomy); 2143 $new_tt_ids[] = $tt_id; 2144 } 2145 2146 if ( $new_tt_ids ) 2147 wp_update_term_count( $new_tt_ids, $taxonomy ); 2145 2148 2146 2149 if ( ! $append ) {
Note: See TracChangeset
for help on using the changeset viewer.