From 5e0d339771ebae670c314d77c6df87110ced1de2 Mon Sep 17 00:00:00 2001 From: Rad Geek Date: Fri, 9 Mar 2018 15:46:29 +0000 Subject: [PATCH] Retrieve full HTML / Make sure that we process retrievals even if post_status is not marked as publish, even if they are assigned to a different post_type. --- Gaffer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Gaffer.php b/Gaffer.php index 53365ff..d19f069 100644 --- a/Gaffer.php +++ b/Gaffer.php @@ -4,7 +4,7 @@ Plugin URI: https://github.com/radgeek/fwp-gaffer/ Description: A FeedWordPress add-on that allows you to grab full-text contents and make a best guess at setting featured images for syndicated content. Author: C. Johnson -Version: 2018.0128 +Version: 2018.0309 Author URI: http://feedwordpress.radgeek.com */ @@ -106,6 +106,8 @@ function add_queue_box ($page) { function display_queue ($page, $box = NULL) { $posts = array(); $urls = array(); $q = new WP_Query(array( + 'post_type' => 'any', + 'post_status' => 'any', 'meta_key' => '_syndicated_full_html_capture', 'posts_per_page' => -1, 'order' => 'ASC', @@ -642,6 +644,8 @@ public function process_full_html ($delta) { // Let's do this. $q = new WP_Query(array( + 'post_type' => 'any', + 'post_status' => 'any', 'meta_key' => '_syndicated_full_html_capture', 'posts_per_page' => $this->process_posts_max(), 'order' => 'ASC', @@ -734,6 +738,7 @@ public function process_captured_images ($delta) { // Let's do this. $q = new WP_Query(array( 'post_type' => 'any', + 'post_status' => 'any', 'meta_key' => '_syndicated_image_capture', 'posts_per_page' => 10, ));