Permalink
Browse files

Retrieve full HTML / Make sure that we process retrievals even if pos…

…t_status is not marked as publish, even if they are assigned to a different post_type.
  • Loading branch information...
Rad Geek
Rad Geek committed Mar 9, 2018
1 parent 99943b3 commit 5e0d339771ebae670c314d77c6df87110ced1de2
Showing with 6 additions and 1 deletion.
  1. +6 −1 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,
));

0 comments on commit 5e0d339

Please sign in to comment.