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/import/wp-cat2tag.php

    r11204 r12515  
    4040    function populate_cats() {
    4141
    42         $categories = get_categories('get=all');
     42        $categories = get_categories(array('get' => 'all'));
    4343        foreach ( $categories as $category ) {
    4444            $this->all_categories[] = $category;
     
    5050    function populate_tags() {
    5151
    52         $tags = get_terms( array('post_tag'), 'get=all' );
     52        $tags = get_terms( array('post_tag'), array('get' => 'all') );
    5353        foreach ( $tags as $tag ) {
    5454            $this->all_tags[] = $tag;
Note: See TracChangeset for help on using the changeset viewer.