Changeset 31090 for trunk/src/wp-admin/includes/taxonomy.php
- Timestamp:
- 01/08/2015 07:04:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r30197 r31090 67 67 function wp_create_categories( $categories, $post_id = '' ) { 68 68 $cat_ids = array (); 69 foreach ( $categories as $category) {70 if ( $id = category_exists($category))69 foreach ( $categories as $category ) { 70 if ( $id = category_exists( $category ) ) { 71 71 $cat_ids[] = $id; 72 else73 if ($id = wp_create_category($category))74 $cat_ids[] = $id;72 } elseif ( $id = wp_create_category( $category ) ) { 73 $cat_ids[] = $id; 74 } 75 75 } 76 76
Note: See TracChangeset
for help on using the changeset viewer.