Make WordPress Core

Ticket #19218: 19218.diff

File 19218.diff, 683 bytes (added by duck_, 15 years ago)
  • wordpress-importer.php

     
    539539                        $post_type_object = get_post_type_object( $post['post_type'] );
    540540
    541541                        $post_exists = post_exists( $post['post_title'], '', $post['post_date'] );
    542                         if ( $post_exists ) {
     542                        if ( $post_exists && get_post_type( $post_exists ) == $post['post_type'] ) {
    543543                                printf( __('%s “%s” already exists.', 'wordpress-importer'), $post_type_object->labels->singular_name, esc_html($post['post_title']) );
    544544                                echo '<br />';
    545545                                $comment_post_ID = $post_id = $post_exists;