Make WordPress Core

Changeset 12515 for trunk/xmlrpc.php


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/xmlrpc.php

    r12303 r12515  
    28072807        $categories_struct = array();
    28082808
    2809         if ( $cats = get_categories('get=all') ) {
     2809        if ( $cats = get_categories(array('get' => 'all')) ) {
    28102810            foreach ( $cats as $cat ) {
    28112811                $struct['categoryId'] = $cat->term_id;
     
    29992999        $categories_struct = array();
    30003000
    3001         if ( $cats = get_categories('hide_empty=0&hierarchical=0') ) {
     3001        if ( $cats = get_categories(array('hide_empty' => 0, 'hierarchical' => 0)) ) {
    30023002            foreach ($cats as $cat) {
    30033003                $struct['categoryId'] = $cat->term_id;
Note: See TracChangeset for help on using the changeset viewer.