Changeset 18783 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 09/26/2011 10:24:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r18661 r18783 2446 2446 } else { 2447 2447 // Default count updater 2448 foreach ( (array) $terms as $term) { 2449 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term) ); 2450 do_action( 'edit_term_taxonomy', $term, $taxonomy ); 2451 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 2452 do_action( 'edited_term_taxonomy', $term, $taxonomy ); 2453 } 2454 2448 _update_post_term_count( $terms, $taxonomy ); 2455 2449 } 2456 2450
Note: See TracChangeset
for help on using the changeset viewer.