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

Commit 838d413

Browse files
committed
fix default value of semantic_linkbacks_facepiles
fix #240 #227 #237
1 parent d10e9ca commit 838d413

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/class-linkbacks-walker-comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Semantic_Linkbacks_Walker_Comment extends Walker_Comment {
99
public static $reactions = array();
1010

1111
protected static function should_facepile( $comment ) {
12-
$facepiles = get_option( 'semantic_linkbacks_facepiles', array() );
12+
$facepiles = get_option( 'semantic_linkbacks_facepiles', array_keys( Linkbacks_Handler::get_comment_type_strings() ) );
1313

1414
if ( self::is_reaction( $comment ) && in_array( 'reaction', $facepiles, true ) ) {
1515
return true;

templates/linkbacks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php $facepiles = get_option( 'semantic_linkbacks_facepiles', array() ); ?>
1+
<?php $facepiles = get_option( 'semantic_linkbacks_facepiles', array_keys( Linkbacks_Handler::get_comment_type_strings() ) ); ?>
22
<?php if ( in_array( 'reacji', $facepiles, true ) && Semantic_Linkbacks_Walker_Comment::$reactions ) : ?>
33
<div class="reactions">
44
<h3><?php echo __( 'Reacjis', 'semantic-linkbacks' ); ?></h3>

0 commit comments

Comments
 (0)