Skip to content

Commit

Permalink
Merge pull request #47 from tristanleboss/master
Browse files Browse the repository at this point in the history
Update syndicatedpost.class.php
  • Loading branch information
radgeek committed Jul 14, 2018
2 parents 381ad20 + cc737e7 commit 999ad91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syndicatedpost.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,9 @@ function freshness ($format = 'number') {
$old_post = NULL;
if ($q->have_posts()) :
while ($q->have_posts()) : $q->the_post();
$old_post = $q->post;
if (get_post_type($q->post->ID) == $this->post['post_type']):
$old_post = $q->post;
endif;
endwhile;
endif;

Expand Down

0 comments on commit 999ad91

Please sign in to comment.