Changeset 740762
- Timestamp:
- 07/15/2013 01:50:13 AM (13 years ago)
- Location:
- readymade-wordpress-importer-061/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wordpress-importer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
readymade-wordpress-importer-061/trunk/readme.txt
r729520 r740762 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 0.6. 77 Stable tag: 0.6.8 8 8 9 9 Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file. … … 32 32 33 33 == Changelog == 34 35 = 0.6.8 = 36 * Fix issue with posts and tags being added multiple times (original importer bug) 34 37 35 38 = 0.6.7 = -
readymade-wordpress-importer-061/trunk/wordpress-importer.php
r729520 r740762 6 6 Author: wordpressdotorg, snyderp@gmail.com 7 7 Author URI: http://readymadeweb.com 8 Version: 0.6. 78 Version: 0.6.8 9 9 Text Domain: wordpress-importer 10 10 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 398 398 foreach ( $this->categories as $cat ) { 399 399 // if the category already exists leave it alone 400 $term_id = term_exists( $cat['category_nicename'], 'category' ); 400 $term_id = term_exists( $cat['cat_name'], 'category' ); 401 401 402 if ( $term_id ) { 402 403 if ( is_array($term_id) ) $term_id = $term_id['term_id']; … … 442 443 foreach ( $this->tags as $tag ) { 443 444 // if the tag already exists leave it alone 444 $term_id = term_exists( $tag['tag_ slug'], 'post_tag' );445 $term_id = term_exists( $tag['tag_name'], 'post_tag' ); 445 446 if ( $term_id ) { 446 447 if ( is_array($term_id) ) $term_id = $term_id['term_id']; … … 633 634 // back compat with WXR 1.0 map 'tag' to 'post_tag' 634 635 $taxonomy = ( 'tag' == $term['domain'] ) ? 'post_tag' : $term['domain']; 635 $term_exists = term_exists( $term[' slug'], $taxonomy );636 $term_exists = term_exists( $term['name'], $taxonomy ); 636 637 $term_id = is_array( $term_exists ) ? $term_exists['term_id'] : $term_exists; 637 638 if ( ! $term_id ) {
Note: See TracChangeset
for help on using the changeset viewer.