Make WordPress Core

Changeset 12662


Ignore:
Timestamp:
01/08/2010 05:58:13 PM (14 years ago)
Author:
ryan
Message:

Pass parent to category_exists(). Props thetoine. fixes #11825

File:
1 edited

Legend:

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

    r11204 r12662  
    4949 */
    5050function wp_create_category( $cat_name, $parent = 0 ) {
    51     if ( $id = category_exists($cat_name) )
     51    if ( $id = category_exists($cat_name, $parent) )
    5252        return $id;
    5353
Note: See TracChangeset for help on using the changeset viewer.