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

Commit

Permalink
fix default value of semantic_linkbacks_facepiles
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Apr 7, 2020
1 parent d10e9ca commit 838d413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-linkbacks-walker-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Semantic_Linkbacks_Walker_Comment extends Walker_Comment {
public static $reactions = array();

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

if ( self::is_reaction( $comment ) && in_array( 'reaction', $facepiles, true ) ) {
return true;
Expand Down
2 changes: 1 addition & 1 deletion templates/linkbacks.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php $facepiles = get_option( 'semantic_linkbacks_facepiles', array() ); ?>
<?php $facepiles = get_option( 'semantic_linkbacks_facepiles', array_keys( Linkbacks_Handler::get_comment_type_strings() ) ); ?>
<?php if ( in_array( 'reacji', $facepiles, true ) && Semantic_Linkbacks_Walker_Comment::$reactions ) : ?>
<div class="reactions">
<h3><?php echo __( 'Reacjis', 'semantic-linkbacks' ); ?></h3>
Expand Down

0 comments on commit 838d413

Please sign in to comment.