Permalink
Browse files

attempting to address #75

ensure there's a null check (aka is_object) before using result of get_syndication_feed_object
  • Loading branch information...
hcientist committed Jan 20, 2017
1 parent ce507c0 commit aac850041dd8f343c487fc75af839c87d1dcc7dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 feedwordpress.php
View
@@ -634,7 +634,7 @@ function syndication_comments_feed_link ($link) {
$source = get_syndication_feed_object();
$replacement = NULL;
if ($source->setting('munge comments feed links', 'munge_comments_feed_links', 'yes') != 'no') :
if (is_object($source) && $source->setting('munge comments feed links', 'munge_comments_feed_links', 'yes') != 'no') :
$commentFeeds = get_post_custom_values('wfw:commentRSS');
if (
is_array($commentFeeds)

0 comments on commit aac8500

Please sign in to comment.