Skip to content

Commit

Permalink
dont show count if "none" is source, fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Sep 15, 2019
1 parent 1e7a6dd commit 6d75ef1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-shared-counts-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ public function link( $types = 'facebook', $id = false, $echo = true, $style = '
}

// Determine if we should show the count.
if( empty( $options['count_source'] ) || 'none' === $options['count_source'] ) {
$show_count = false;
}
if ( 'false' === $show_empty && 0 == $link['count'] ) { //phpcs:ignore
$show_count = false;
}
Expand Down

0 comments on commit 6d75ef1

Please sign in to comment.