WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/03/2010 07:29:44 AM (9 years ago)
Author:
nacin
Message:

Have wp_delete_category wrap wp_delete_term. Move wp_delete_category into wp-includes scope for consistency. fixes #15008, props blepoxp.

File:
1 edited

Legend:

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

    r15648 r15690  
    860860     *
    861861     * @param array $args Method parameters.
    862      * @return mixed See {@link wp_delete_category()} for return info.
     862     * @return mixed See {@link wp_delete_term()} for return info.
    863863     */
    864864    function wp_deleteCategory($args) {
     
    878878            return new IXR_Error( 401, __( "Sorry, you do not have the right to delete a category." ) );
    879879
    880         return wp_delete_category( $category_id );
     880        return wp_delete_term( $category_id, 'category' );
    881881    }
    882882
Note: See TracChangeset for help on using the changeset viewer.