Changeset 5728

Show
Ignore:
Timestamp:
06/19/07 18:03:12 (1 year ago)
Author:
rob1n
Message:

Change references of get_object_terms() to wp_get_object_terms(). fixes #4490

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/taxonomy.php

    r5726 r5728  
    468468 
    469469    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'); 
    471471        $in_terms = "'" . implode("', '", $terms) . "'"; 
    472472        $wpdb->query("DELETE FROM $wpdb->term_relationships WHERE object_id = '$object_id' AND term_taxonomy_id IN ($in_terms)"); 
     
    511511 
    512512    foreach ( (array) $objects as $object ) { 
    513         $terms = get_object_terms($object, $taxonomy, 'fields=ids'); 
     513        $terms = wp_get_object_terms($object, $taxonomy, 'fields=ids'); 
    514514        if ( 1 == count($terms) && isset($default) ) 
    515515            $terms = array($default);