From 7b09e504e796a8ee23ba263a5ceb2d951af83c37 Mon Sep 17 00:00:00 2001 From: rob1n Date: Tue, 19 Jun 2007 18:03:12 +0000 Subject: [PATCH] Change references of get_object_terms() to wp_get_object_terms(). fixes #4490 git-svn-id: http://svn.automattic.com/wordpress/trunk@5728 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 8a00a530a7..d47ab7e830 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -467,7 +467,7 @@ function wp_delete_object_term_relationships( $object_id, $taxonomies ) { $taxonomies = array($taxonomies); foreach ( $taxonomies as $taxonomy ) { - $terms = get_object_terms($object_id, $taxonomy, 'fields=tt_ids'); + $terms = wp_get_object_terms($object_id, $taxonomy, 'fields=tt_ids'); $in_terms = "'" . implode("', '", $terms) . "'"; $wpdb->query("DELETE FROM $wpdb->term_relationships WHERE object_id = '$object_id' AND term_taxonomy_id IN ($in_terms)"); @@ -510,7 +510,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) { $objects = $wpdb->get_col("SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = '$tt_id'"); foreach ( (array) $objects as $object ) { - $terms = get_object_terms($object, $taxonomy, 'fields=ids'); + $terms = wp_get_object_terms($object, $taxonomy, 'fields=ids'); if ( 1 == count($terms) && isset($default) ) $terms = array($default); else