Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r12513 r12515  
    303303        global $wpdb;
    304304
    305         $cat_names = (array) get_terms('category', 'fields=names');
     305        $cat_names = (array) get_terms('category', array('fields' => 'names'));
    306306
    307307        while ( $c = array_shift($this->categories) ) {
     
    333333        global $wpdb;
    334334
    335         $tag_names = (array) get_terms('post_tag', 'fields=names');
     335        $tag_names = (array) get_terms('post_tag', array('fields' => 'names'));
    336336
    337337        while ( $c = array_shift($this->tags) ) {
Note: See TracChangeset for help on using the changeset viewer.