Make WordPress Core

Ticket #5406: xmlrpc.php.diff

File xmlrpc.php.diff, 593 bytes (added by josephscott, 18 years ago)
  • xmlrpc.php

     
    547547                        return($this->error);
    548548                }
    549549
     550                $category_suggestions = array();
    550551                $args = array('get' => 'all', 'number' => $max_results, 'name__like' => $category);
    551                 $category_suggestions = get_categories($args);
     552                foreach ( (array) get_categories($args) as $cat ) {
     553                        $category_suggestions[] = array(
     554                                "category_id"   => $cat->cat_ID,
     555                                "category_name" => $cat->cat_name
     556                        );
     557                }
    552558
    553559                return($category_suggestions);
    554560        }