Related Posts Thumbnails Plugin for WordPress - Version 1.7.2

Version Description

  • Please upgrade immediately - fix for post sorting

=

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Related Posts Thumbnails Plugin for WordPress
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

Files changed (2) hide show
  1. readme.txt +6 -3
  2. related-posts-thumbnails.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpbrigade.com/
4
  Tags: easy related posts, Related Posts thumbnails, Free Related Posts, related posts, similar related posts
5
  Requires at least: 3.6
6
  Tested up to: 5.2
7
- Stable tag: 1.7.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -71,11 +71,14 @@ If there are no images of the specified size in the post, or file does not exist
71
 
72
  == Upgrade Notice ==
73
 
74
- = 1.7.1 =
75
- * Please upgrade immediately - fix for php 5.3
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.7.1 - 2019-05-27 =
80
  * Bug Fix : Compatibility issue with php 5.3 in newly Gutenberg block.
81
 
4
  Tags: easy related posts, Related Posts thumbnails, Free Related Posts, related posts, similar related posts
5
  Requires at least: 3.6
6
  Tested up to: 5.2
7
+ Stable tag: 1.7.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
71
 
72
  == Upgrade Notice ==
73
 
74
+ = 1.7.2 =
75
+ * Please upgrade immediately - fix for post sorting
76
 
77
  == Changelog ==
78
 
79
+ = 1.7.2 - 2019-06-10 =
80
+ * Bug Fix : Sorting issue when latest posts option selected.
81
+
82
  = 1.7.1 - 2019-05-27 =
83
  * Bug Fix : Compatibility issue with php 5.3 in newly Gutenberg block.
84
 
related-posts-thumbnails.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WordPress Related Posts Thumbnails
4
  * Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
5
  * Description: Showing related posts thumbnails under the posts.
6
- * Version: 1.7.1
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
9
  */
@@ -390,7 +390,7 @@ class RelatedPostsThumbnails {
390
  $width = '';
391
  // $date = '';
392
 
393
- $sort_by_opt = get_option( 'rpt_post_sort') == 'latest' ? 'post_date': 'rand()';
394
  $sort_by = !empty( $sort_by_short ) ? $sort_by_short : $sort_by_opt;
395
 
396
  // rpt_content_align: add content allignment class; clases are: relpost-align-left, relpost-align-right and relpost-align-center
3
  * Plugin Name: WordPress Related Posts Thumbnails
4
  * Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
5
  * Description: Showing related posts thumbnails under the posts.
6
+ * Version: 1.7.2
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
9
  */
390
  $width = '';
391
  // $date = '';
392
 
393
+ $sort_by_opt = get_option( 'rpt_post_sort') == 'latest' ? 'post_date DESC': 'rand()';
394
  $sort_by = !empty( $sort_by_short ) ? $sort_by_short : $sort_by_opt;
395
 
396
  // rpt_content_align: add content allignment class; clases are: relpost-align-left, relpost-align-right and relpost-align-center