Changeset 6588 for trunk/wp-admin/includes/taxonomy.php
- Timestamp:
- 01/10/2008 09:39:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/taxonomy.php
r6363 r6588 17 17 } 18 18 19 function wp_create_category( $cat_name) {19 function wp_create_category( $cat_name, $parent = 0 ) { 20 20 if ( $id = category_exists($cat_name) ) 21 21 return $id; 22 22 23 return wp_insert_category( array('cat_name' => $cat_name ) );23 return wp_insert_category( array('cat_name' => $cat_name, 'category_parent' => $parent) ); 24 24 } 25 25
Note: See TracChangeset
for help on using the changeset viewer.