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

@@ -2806,7 +2806,7 @@ class wp_xmlrpc_server extends IXR_Server {
$categories_struct = array();
if ( $cats = get_categories('get=all') ) {
if ( $cats = get_categories(array('get' => 'all')) ) {
foreach ( $cats as $cat ) {
$struct['categoryId'] = $cat->term_id;
$struct['parentId'] = $cat->parent;
@@ -2998,7 +2998,7 @@ class wp_xmlrpc_server extends IXR_Server {
$categories_struct = array();
if ( $cats = get_categories('hide_empty=0&hierarchical=0') ) {
if ( $cats = get_categories(array('hide_empty' => 0, 'hierarchical' => 0)) ) {
foreach ($cats as $cat) {
$struct['categoryId'] = $cat->term_id;
$struct['categoryName'] = $cat->name;