WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/23/2009 03:31:02 PM (11 years ago)
Author:
ryan
Message:

Use array calling style. Props Denis-de-Bernardy. see #6647

File:
1 edited

Legend:

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

    r12510 r12515  
    10801080
    10811081    foreach ( (array) $taxonomies as $taxonomy ) {
    1082         $tt_ids = wp_get_object_terms($object_id, $taxonomy, 'fields=tt_ids');
     1082        $tt_ids = wp_get_object_terms($object_id, $taxonomy, array('fields' => 'tt_ids'));
    10831083        $in_tt_ids = "'" . implode("', '", $tt_ids) . "'";
    10841084        do_action( 'delete_term_relationships', $object_id, $tt_ids );
     
    15111511        $values = array();
    15121512        $term_order = 0;
    1513         $final_tt_ids = wp_get_object_terms($object_id, $taxonomy, 'fields=tt_ids');
     1513        $final_tt_ids = wp_get_object_terms($object_id, $taxonomy, array('fields' => 'tt_ids'));
    15141514        foreach ( $tt_ids as $tt_id )
    15151515            if ( in_array($tt_id, $final_tt_ids) )
     
    19591959        return false;
    19601960
    1961     $terms = wp_get_object_terms($ids, $taxonomies, 'fields=all_with_object_id');
     1961    $terms = wp_get_object_terms($ids, $taxonomies, array('fields' => 'all_with_object_id'));
    19621962
    19631963    $object_terms = array();
     
    20302030
    20312031    $children = array();
    2032     $terms = get_terms($taxonomy, 'get=all');
     2032    $terms = get_terms($taxonomy, array('get' => 'all'));
    20332033    foreach ( $terms as $term ) {
    20342034        if ( $term->parent > 0 )
Note: See TracChangeset for help on using the changeset viewer.