WordPress.org

Make WordPress Core

Changeset 5728


Ignore:
Timestamp:
06/19/2007 06:03:12 PM (13 years ago)
Author:
rob1n
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.