mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 09:40:13 +00:00
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:
@@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user