Skip to content

Commit

Permalink
Fixed empty Twitter link in author cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Nov 21, 2022
1 parent 89b6951 commit b48e13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion author-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function bw_render_author_links( $helpers, $options ){ ?>
<a class="btn mb-2" title="Fediverse" rel="me" href="<?php echo $options['fediverse_url']; ?>"><?php echo $options['fediverse_handle']; ?></a>
</li>
<?php } ?>
<?php if ( !empty( $options['twitter_handle'] )){ ?>
<?php if ( !empty( $options['twitter_handle'] ) && $options['twitter_handle'] !== '@' ){ ?>
<li>
<a class="btn mb-2" title="Twitter" rel="me" href="https://twitter.com/<?php echo $options['twitter_handle']; ?>"><?php echo $options['twitter_handle']; ?></a>
</li>
Expand Down

0 comments on commit b48e13a

Please sign in to comment.