Changeset 1409742 for wordpress-importer
- Timestamp:
- 05/03/2016 04:45:05 PM (10 years ago)
- Location:
- wordpress-importer
- Files:
-
- 6 added
- 2 edited
-
tags/0.6.2 (added)
-
tags/0.6.2/languages (added)
-
tags/0.6.2/languages/wordpress-importer.pot (added)
-
tags/0.6.2/parsers.php (added)
-
tags/0.6.2/readme.txt (added)
-
tags/0.6.2/wordpress-importer.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wordpress-importer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-importer/trunk/readme.txt
r1172282 r1409742 1 1 === WordPress Importer === 2 2 Contributors: wordpressdotorg 3 Donate link:4 3 Tags: importer, wordpress 5 4 Requires at least: 3.0 6 Tested up to: 4. 37 Stable tag: 0.6. 15 Tested up to: 4.5 6 Stable tag: 0.6.2 8 7 License: GPLv2 or later 9 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 38 40 39 == Changelog == 40 41 = 0.6.2 = 42 * Add wp_import_existing_post filter. See: https://core.trac.wordpress.org/ticket/33721 41 43 42 44 = 0.6 = -
wordpress-importer/trunk/wordpress-importer.php
r1157097 r1409742 6 6 Author: wordpressdotorg 7 7 Author URI: http://wordpress.org/ 8 Version: 0.6. 18 Version: 0.6.2 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 … … 554 554 555 555 $post_exists = post_exists( $post['post_title'], '', $post['post_date'] ); 556 557 /** 558 * Filter ID of the existing post corresponding to post currently importing. 559 * 560 * Return 0 to force the post to be imported. Filter the ID to be something else 561 * to override which existing post is mapped to the imported post. 562 * 563 * @see post_exists() 564 * @since 0.6.2 565 * 566 * @param int $post_exists Post ID, or 0 if post did not exist. 567 * @param array $post The post array to be inserted. 568 */ 569 $post_exists = apply_filters( 'wp_import_existing_post', $post_exists, $post ); 570 556 571 if ( $post_exists && get_post_type( $post_exists ) == $post['post_type'] ) { 557 572 printf( __('%s “%s” already exists.', 'wordpress-importer'), $post_type_object->labels->singular_name, esc_html($post['post_title']) ); 558 573 echo '<br />'; 559 574 $comment_post_ID = $post_id = $post_exists; 575 $this->processed_posts[ intval( $post['post_id'] ) ] = intval( $post_exists ); 560 576 } else { 561 577 $post_parent = (int) $post['post_parent'];
Note: See TracChangeset
for help on using the changeset viewer.