Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 7706ee2

Browse files
authored
Update class-linkbacks-walker-comment.php
1 parent fc4b782 commit 7706ee2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

includes/class-linkbacks-walker-comment.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ class Semantic_Linkbacks_Walker_Comment extends Walker_Comment {
1010

1111
protected static function should_facepile( $comment ) {
1212
$facepiles = get_option( 'semantic_linkbacks_facepiles', array_keys( Linkbacks_Handler::get_comment_type_strings() ) );
13-
13+
// If getting the facepiles hasn't worked, create an empty array to avoid generating errors
14+
if (!is_array($facepiles)) {
15+
$facepiles = array();
16+
}
17+
1418
if ( self::is_reaction( $comment ) && in_array( 'reaction', $facepiles, true ) ) {
1519
return true;
1620
}

0 commit comments

Comments
 (0)