From ce76c16806a1076a4823ecad1128bf050c1c306d Mon Sep 17 00:00:00 2001 From: Peeter Marvet Date: Sat, 8 Sep 2012 16:55:35 +0300 Subject: [PATCH] fix post existence check for custom post types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit check for pre-existing posts worked only when using "post" post-type - added 'post_type' => 'any' to query (alternative would have been to check against specific post type…) --- syndicatedpost.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/syndicatedpost.class.php b/syndicatedpost.class.php index 75707e1..cdfb691 100644 --- a/syndicatedpost.class.php +++ b/syndicatedpost.class.php @@ -1264,6 +1264,7 @@ function freshness () { 'fields' => '_synfresh', // id, guid, post_modified_gmt 'ignore_sticky_posts' => true, 'guid' => $guid, + 'post_type' => 'any', )); $old_post = NULL;