Restore wp_delete_category. props blepoxp, fixes #15008.

git-svn-id: https://develop.svn.wordpress.org/trunk@15712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-04 16:28:01 +00:00
parent 27d9e24a11
commit 7cac913b3b
1 changed files with 14 additions and 0 deletions

View File

@ -1519,6 +1519,20 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
return true;
}
/*
* Deletes one existing category.
*
* @since 2.0.0
* @uses wp_delete_term()
*
* @param int $cat_ID
* @return mixed Returns true if completes delete action; false if term doesnt exist;
* Zero on attempted deletion of default Category; WP_Error object is also a possibility.
*/
function wp_delete_category( $cat_ID ) {
return wp_delete_term( $cat_ID, 'category' );
}
/**
* Retrieves the terms associated with the given object(s), in the supplied taxonomies.
*