Skip to content

Commit

Permalink
Update call to post_exists to include post_type in the query (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhusakovic authored Sep 10, 2024
1 parent 7e7a339 commit 41b1771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-wp-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function process_posts() {

$post_type_object = get_post_type_object( $post['post_type'] );

$post_exists = post_exists( $post['post_title'], '', $post['post_date'] );
$post_exists = post_exists( $post['post_title'], '', $post['post_date'], $post['post_type'] );

/**
* Filter ID of the existing post corresponding to post currently importing.
Expand Down

0 comments on commit 41b1771

Please sign in to comment.