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

git-svn-id: https://develop.svn.wordpress.org/trunk@12515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-12-23 15:31:02 +00:00
parent 30e399b3e7
commit dcd3604d90
16 changed files with 31 additions and 31 deletions

View File

@@ -302,7 +302,7 @@ class WP_Import {
function process_categories() {
global $wpdb;
$cat_names = (array) get_terms('category', 'fields=names');
$cat_names = (array) get_terms('category', array('fields' => 'names'));
while ( $c = array_shift($this->categories) ) {
$cat_name = trim($this->get_tag( $c, 'wp:cat_name' ));
@@ -332,7 +332,7 @@ class WP_Import {
function process_tags() {
global $wpdb;
$tag_names = (array) get_terms('post_tag', 'fields=names');
$tag_names = (array) get_terms('post_tag', array('fields' => 'names'));
while ( $c = array_shift($this->tags) ) {
$tag_name = trim($this->get_tag( $c, 'wp:tag_name' ));