Skip to content

Commit

Permalink
Remove empty anchor tags from widget morelink
Browse files Browse the repository at this point in the history
Fixes #523
  • Loading branch information
klemens-st committed Dec 15, 2024
1 parent a4134b7 commit 168312b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lcp-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function widget($args, $instance) {
$showcatlink = ($instance['show_catlink'] == 'on') ? 'yes' : 'no';
$thumbnail = ($instance['thumbnail'] == 'on') ? 'yes' : 'no';
$thumbnail_size = ($instance['thumbnail_size']) ? $instance['thumbnail_size'] : 'thumbnail';
$morelink = empty($instance['morelink']) ? ' ' : $instance['morelink'];
$morelink = empty($instance['morelink']) ? '' : $instance['morelink'];
if ( empty( $instance['tags_as_class'] ) ) {
$instance['tags_as_class'] = 'no';
}
Expand Down

0 comments on commit 168312b

Please sign in to comment.