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

git-svn-id: https://develop.svn.wordpress.org/trunk@15690 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-10-03 07:29:44 +00:00
parent 6fd30d36ea
commit 6d07d415ec
3 changed files with 10 additions and 22 deletions

View File

@@ -859,7 +859,7 @@ class wp_xmlrpc_server extends IXR_Server {
* @since 2.5.0
*
* @param array $args Method parameters.
* @return mixed See {@link wp_delete_category()} for return info.
* @return mixed See {@link wp_delete_term()} for return info.
*/
function wp_deleteCategory($args) {
$this->escape($args);
@@ -877,7 +877,7 @@ class wp_xmlrpc_server extends IXR_Server {
if ( !current_user_can("manage_categories") )
return new IXR_Error( 401, __( "Sorry, you do not have the right to delete a category." ) );
return wp_delete_category( $category_id );
return wp_delete_term( $category_id, 'category' );
}
/**