Make WordPress Core


Ignore:
Timestamp:
12/23/2009 03:31:02 PM (15 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/includes/export.php

    r12506 r12515  
    4444$post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
    4545
    46 $categories = (array) get_categories('get=all');
    47 $tags = (array) get_tags('get=all');
     46$categories = (array) get_categories(array('get' => 'all'));
     47$tags = (array) get_tags(array('get' => 'all'));
    4848
    4949$custom_taxonomies = $wp_taxonomies;
     
    7777
    7878while ( $parents = wxr_missing_parents($categories) ) {
    79     $found_parents = get_categories("include=" . join(', ', $parents));
     79    $found_parents = get_categories(array('include' => join(', ', $parents)));
    8080    if ( is_array($found_parents) && count($found_parents) )
    8181        $categories = array_merge($categories, $found_parents);
Note: See TracChangeset for help on using the changeset viewer.