Ticket #13460: 13460.diff
File 13460.diff, 623 bytes (added by , 15 years ago) |
---|
-
wp-admin/import/wp-cat2tag.php
260 260 if ( ! ($id = is_term( $category->slug, 'post_tag' ) ) ) 261 261 $id = wp_insert_term($category->name, 'post_tag', array('slug' => $category->slug)); 262 262 263 if ( is_wp_error($id) ) { 264 echo $id->get_error_message() . "</li>\n"; 265 continue; 266 } 267 263 268 $id = $id['term_taxonomy_id']; 264 269 $posts = get_objects_in_term($category->term_id, 'category'); 265 270 $term_order = 0;