From 168312b2a50f344b743eb7a29edecd14dc8a24de Mon Sep 17 00:00:00 2001 From: Klemens Starybrat Date: Sun, 15 Dec 2024 19:18:02 +0100 Subject: [PATCH] Remove empty anchor tags from widget morelink Fixes #523 --- include/lcp-widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lcp-widget.php b/include/lcp-widget.php index 714344d..3082cb2 100644 --- a/include/lcp-widget.php +++ b/include/lcp-widget.php @@ -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'; }