mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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' ));
|
||||
|
||||
Reference in New Issue
Block a user