Skip to content

Commit

Permalink
Bug fix: Corrected thumbnail images
Browse files Browse the repository at this point in the history
Fixes #210
  • Loading branch information
ajaydsouza committed Dec 31, 2024
1 parent 5647b26 commit 9d1082f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contextual-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Contextual Related Posts
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates.
* Version: 3.6.0
* Version: 3.6.1-RC1
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/frontend/class-media-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public static function get_the_post_thumbnail( $args = array() ) {
$attr['thumb_width'] = $args['thumb_width'];
$attr['thumb_height'] = $args['thumb_height'];

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

if ( function_exists( 'wp_img_tag_add_srcset_and_sizes_attr' ) && ! empty( $attachment_id ) ) {
$output = \wp_img_tag_add_srcset_and_sizes_attr( $output, self::$prefix . '_thumbnail', $attachment_id );
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t

== Changelog ==

= 3.6.1 =

* Bug fix: Corrected thumbnail images to return the specified image size instead of the full size.

= 3.6.0 =

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

0 comments on commit 9d1082f

Please sign in to comment.