Skip to content

Commit

Permalink
Bugfix for thumbnail link not working, v0.80.1
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed May 11, 2019
1 parent 5231e05 commit 382a82e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/lcp-thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ public function get_thumbnail($single, $thumbnail, $thumbnail_size, $force_thumb
$lcp_thumbnail = '<a href="' . esc_url(get_permalink($single->ID)) .
'" title="' . esc_attr($single->post_title) . '">';

$lcp_thumbnail = '<img src="' . get_the_post_thumbnail_url($single->ID, $lcp_thumb_size) .'"';
$lcp_thumbnail .= '<img src="' . get_the_post_thumbnail_url($single->ID, $lcp_thumb_size) .'"';
if ( $lcp_thumb_class != null ) { // thumbnail class passed as parameter to shortcode
$lcp_thumbnail .= ' class="' . $lcp_thumb_class . '" ';
}
else { // Otherwise, use this class name
$lcp_thumbnail .= ' class="lcp_thumbnail" ';
}
$lcp_thumbnail .= ' alt="' . esc_attr($single->post_title) . '" />';

$lcp_thumbnail .= '</a>';
} else {
// if thumbnail is requested but not found as featured image, grab first image in the content of the post
Expand Down
2 changes: 1 addition & 1 deletion list-category-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: List category posts
Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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].
Version: 0.80
Version: 0.80.1
Author: Fernando Briano
Author URI: http://fernandobriano.com
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
Requires at least: 3.3
Tested up to: 5.2
Requires PHP: 5.4
Stable tag: 0.80
Stable tag: 0.80.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 0.80.1 =

* Bugfix release: fix for featured image link to full post not working. Thanks Werner!

= 0.80 =

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

0 comments on commit 382a82e

Please sign in to comment.