Changeset 6329 for trunk/wp-admin/includes/taxonomy.php
- Timestamp:
- 11/12/2007 07:12:49 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/taxonomy.php
r6157 r6329 53 53 } 54 54 55 function wp_insert_category($catarr ) {55 function wp_insert_category($catarr, $wp_error = false) { 56 56 global $wpdb; 57 57 … … 85 85 $cat_ID = wp_insert_term($cat_name, 'category', $args); 86 86 87 if ( is_wp_error($cat_ID) ) 88 return 0; 87 if ( is_wp_error($cat_ID) ) { 88 if ( $wp_error ) 89 return $cat_ID; 90 else 91 return 0; 92 } 89 93 90 94 return $cat_ID['term_id'];
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)