Changeset 23552
- Timestamp:
- 03/01/2013 04:22:07 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r23484 r23552 2313 2313 $in_tt_ids = "'" . implode( "', '", $tt_ids ) . "'"; 2314 2314 do_action( 'delete_term_relationships', $object_id, $tt_ids ); 2315 $ wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) );2315 $deleted = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) ); 2316 2316 do_action( 'deleted_term_relationships', $object_id, $tt_ids ); 2317 2317 wp_update_term_count( $tt_ids, $taxonomy ); 2318 2318 2319 return true;2319 return (bool) $deleted; 2320 2320 } 2321 2321
Note: See TracChangeset
for help on using the changeset viewer.