WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/12/2010 06:40:51 PM (9 years ago)
Author:
scribu
Message:

Don't use deprecated category properties. Props filosofo. Fixes #15408

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r16256 r16331  
    947947        foreach ( (array) get_categories($args) as $cat ) {
    948948            $category_suggestions[] = array(
    949                 "category_id"   => $cat->cat_ID,
    950                 "category_name" => $cat->cat_name
     949                "category_id"   => $cat->term_id,
     950                "category_name" => $cat->name
    951951            );
    952952        }
Note: See TracChangeset for help on using the changeset viewer.