Ticket #18631: 18658.diff
| File 18658.diff, 843 bytes (added by , 15 years ago) |
|---|
-
wp-includes/taxonomy.php
2115 2115 2116 2116 $tt_ids = array(); 2117 2117 $term_ids = array(); 2118 $new_tt_ids = array(); 2118 2119 2119 2120 foreach ( (array) $terms as $term) { 2120 2121 if ( !strlen(trim($term)) ) … … 2137 2138 do_action( 'add_term_relationship', $object_id, $tt_id ); 2138 2139 $wpdb->insert( $wpdb->term_relationships, array( 'object_id' => $object_id, 'term_taxonomy_id' => $tt_id ) ); 2139 2140 do_action( 'added_term_relationship', $object_id, $tt_id ); 2141 $new_tt_ids[] = $tt_id; 2140 2142 } 2143 if (count($new_tt_ids)) 2144 wp_update_term_count($new_tt_ids, $taxonomy); 2141 2145 2142 wp_update_term_count($tt_ids, $taxonomy);2143 2146 2144 2147 if ( ! $append ) { 2145 2148 $delete_terms = array_diff($old_tt_ids, $tt_ids);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)