Skip to content

Commit 9d1082f

Browse files
committed
Bug fix: Corrected thumbnail images
Fixes #210
1 parent 5647b26 commit 9d1082f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

contextual-related-posts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Contextual Related Posts
1616
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
1717
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates.
18-
* Version: 3.6.0
18+
* Version: 3.6.1-RC1
1919
* Author: WebberZone
2020
* Author URI: https://webberzone.com
2121
* License: GPL-2.0+

includes/frontend/class-media-handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public static function get_the_post_thumbnail( $args = array() ) {
318318
$attr['thumb_width'] = $args['thumb_width'];
319319
$attr['thumb_height'] = $args['thumb_height'];
320320

321-
$output .= self::get_image_html( $postimage, $attr, $attachment_id );
321+
$output .= self::get_image_html( $postimage, $attr, $attachment_id, $args['size'] );
322322

323323
if ( function_exists( 'wp_img_tag_add_srcset_and_sizes_attr' ) && ! empty( $attachment_id ) ) {
324324
$output = \wp_img_tag_add_srcset_and_sizes_attr( $output, self::$prefix . '_thumbnail', $attachment_id );

readme.txt

+4
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t
155155

156156
== Changelog ==
157157

158+
= 3.6.1 =
159+
160+
* Bug fix: Corrected thumbnail images to return the specified image size instead of the full size.
161+
158162
= 3.6.0 =
159163

160164
Release post: [https://webberzone.com/announcements/contextual-related-posts-v3-6-0/](https://webberzone.com/announcements/contextual-related-posts-v3-6-0/)

0 commit comments

Comments
 (0)