Skip to content

Commit 382a82e

Browse files
committed
Bugfix for thumbnail link not working, v0.80.1
1 parent 5231e05 commit 382a82e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

include/lcp-thumbnail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public function get_thumbnail($single, $thumbnail, $thumbnail_size, $force_thumb
4141
$lcp_thumbnail = '<a href="' . esc_url(get_permalink($single->ID)) .
4242
'" title="' . esc_attr($single->post_title) . '">';
4343

44-
$lcp_thumbnail = '<img src="' . get_the_post_thumbnail_url($single->ID, $lcp_thumb_size) .'"';
44+
$lcp_thumbnail .= '<img src="' . get_the_post_thumbnail_url($single->ID, $lcp_thumb_size) .'"';
4545
if ( $lcp_thumb_class != null ) { // thumbnail class passed as parameter to shortcode
4646
$lcp_thumbnail .= ' class="' . $lcp_thumb_class . '" ';
4747
}
4848
else { // Otherwise, use this class name
4949
$lcp_thumbnail .= ' class="lcp_thumbnail" ';
5050
}
5151
$lcp_thumbnail .= ' alt="' . esc_attr($single->post_title) . '" />';
52-
52+
5353
$lcp_thumbnail .= '</a>';
5454
} else {
5555
// if thumbnail is requested but not found as featured image, grab first image in the content of the post

list-category-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: List category posts
44
Plugin URI: https://github.com/picandocodigo/List-Category-Posts
55
Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6-
Version: 0.80
6+
Version: 0.80.1
77
Author: Fernando Briano
88
Author URI: http://fernandobriano.com
99

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
55
Requires at least: 3.3
66
Tested up to: 5.2
77
Requires PHP: 5.4
8-
Stable tag: 0.80
8+
Stable tag: 0.80.1
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -229,6 +229,10 @@ Template system has changed. Custom templates should be stored in WordPress them
229229

230230
== Changelog ==
231231

232+
= 0.80.1 =
233+
234+
* Bugfix release: fix for featured image link to full post not working. Thanks Werner!
235+
232236
= 0.80 =
233237

234238
* Use post title as alt attribute in thumbnails. Thanks @arcticmouse!

0 commit comments

Comments
 (0)