Open drewbaker opened 8 years ago
Noticed a bug with this today, but it's edge case. But it would be worth adding a 'post_status' => 'any' parameter to the following query, in the off chance someone sets a attachment/post to draft (which I did programmatically on Exposure).
'post_status' => 'any'
https://github.com/jrobson153/funkstagram/blob/master/funkstagram-class.php#L266-L272
$args = array( 'posts_per_page' => 1, 'meta_key' => 'instagram_id', 'meta_value' => $gram_post["id"], 'post_type' => 'attachment' ); $existing_posts = get_posts($args);
Noticed a bug with this today, but it's edge case. But it would be worth adding a
'post_status' => 'any'
parameter to the following query, in the off chance someone sets a attachment/post to draft (which I did programmatically on Exposure).https://github.com/jrobson153/funkstagram/blob/master/funkstagram-class.php#L266-L272