From 41b1771213d794c90fb64d6fccd67d6c02d594f9 Mon Sep 17 00:00:00 2001 From: Dejan Husakovic Date: Tue, 10 Sep 2024 11:10:03 +1000 Subject: [PATCH] Update call to post_exists to include post_type in the query (#163) --- src/class-wp-import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class-wp-import.php b/src/class-wp-import.php index e1cb094..ab68867 100644 --- a/src/class-wp-import.php +++ b/src/class-wp-import.php @@ -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.