Changeset 5728 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/19/2007 06:03:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5726 r5728 468 468 469 469 foreach ( $taxonomies as $taxonomy ) { 470 $terms = get_object_terms($object_id, $taxonomy, 'fields=tt_ids');470 $terms = wp_get_object_terms($object_id, $taxonomy, 'fields=tt_ids'); 471 471 $in_terms = "'" . implode("', '", $terms) . "'"; 472 472 $wpdb->query("DELETE FROM $wpdb->term_relationships WHERE object_id = '$object_id' AND term_taxonomy_id IN ($in_terms)"); … … 511 511 512 512 foreach ( (array) $objects as $object ) { 513 $terms = get_object_terms($object, $taxonomy, 'fields=ids');513 $terms = wp_get_object_terms($object, $taxonomy, 'fields=ids'); 514 514 if ( 1 == count($terms) && isset($default) ) 515 515 $terms = array($default);
Note: See TracChangeset
for help on using the changeset viewer.