WordPress.org

Make WordPress Core

Changeset 15712


Ignore:
Timestamp:
10/04/2010 04:28:01 PM (9 years ago)
Author:
nacin
Message:

Restore wp_delete_category. props blepoxp, fixes #15008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r15705 r15712  
    15181518
    15191519    return true;
     1520}
     1521
     1522/*
     1523 * Deletes one existing category.
     1524 *
     1525 * @since 2.0.0
     1526 * @uses wp_delete_term()
     1527 *
     1528 * @param int $cat_ID
     1529 * @return mixed Returns true if completes delete action; false if term doesnt exist;
     1530 *  Zero on attempted deletion of default Category; WP_Error object is also a possibility.
     1531 */
     1532function wp_delete_category( $cat_ID ) {
     1533    return wp_delete_term( $cat_ID, 'category' );
    15201534}
    15211535
Note: See TracChangeset for help on using the changeset viewer.