diff --git a/template-tags.php b/template-tags.php index 95a41f1a..7d2eb0ce 100644 --- a/template-tags.php +++ b/template-tags.php @@ -125,8 +125,10 @@ function coauthors__echo( $tag, $type = 'tag', $separators = array(), $tag_args } // Fallback to user_login if we get something empty - if ( empty( $author_text ) ) { - $author_text = $i->current_author->user_login; + if ( empty( $author_text ) && is_object( $i->current_author ) && ! empty( $i->current_author->user_login ) ) { + if(!is_bool($i->current_author)){ + $author_text = $i->current_author->user_login; + } } // Append separators