Skip to content

Commit

Permalink
Retrieve full HTML / Make sure that we process retrievals even if pos…
Browse files Browse the repository at this point in the history
…t_status is not marked as publish, even if they are assigned to a different post_type.
  • Loading branch information
Rad Geek committed Mar 9, 2018
1 parent 99943b3 commit 5e0d339
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Gaffer.php
Expand Up @@ -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
*/

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
));
Expand Down

0 comments on commit 5e0d339

Please sign in to comment.