Yet Another Related Posts Plugin (YARPP) - Version 5.18.2

Version Description

(19-April-2021) = * Bugfix: Allow default WP image sizes to be picked for the YARPP Thumbnail theme

Download this release

Release Info

Developer jeffparker
Plugin Icon 128x128 Yet Another Related Posts Plugin (YARPP)
Version 5.18.2
Comparing to
See all releases

Code changes from version 5.18.1 to 5.18.2

Files changed (3) hide show
  1. includes/init_functions.php +2 -3
  2. readme.txt +5 -2
  3. yarpp.php +2 -2
includes/init_functions.php CHANGED
@@ -36,9 +36,8 @@ function yarpp_get_option_thumbnail( $option = null, $default_option = 'thumbnai
36
  if ( empty( $user_selected_thumbnail ) && 'thumbnails' === $get_template ) {
37
  $thumbnail_size = 'yarpp-thumbnail';
38
  } elseif ( ! empty( $user_selected_thumbnail ) && 'thumbnails' === $get_template ) {
39
- // Ensure user selected thumbnail is still registered.
40
- global $_wp_additional_image_sizes;
41
- if (isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) && !isset($_wp_additional_image_sizes[$user_selected_thumbnail])){
42
  $thumbnail_size = 'yarpp-thumbnail';
43
  } else {
44
  $thumbnail_size = $user_selected_thumbnail;
36
  if ( empty( $user_selected_thumbnail ) && 'thumbnails' === $get_template ) {
37
  $thumbnail_size = 'yarpp-thumbnail';
38
  } elseif ( ! empty( $user_selected_thumbnail ) && 'thumbnails' === $get_template ) {
39
+ // Check whether user selected thumbnail is still registered.
40
+ if ( false === yarpp_get_image_sizes( $user_selected_thumbnail ) ) {
 
41
  $thumbnail_size = 'yarpp-thumbnail';
42
  } else {
43
  $thumbnail_size = $user_selected_thumbnail;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.7
5
  Requires PHP: 5.3
6
  License: GPLv2 or later
7
  Tested up to: 5.7
8
- Stable tag: 5.18.1
9
 
10
  The most popular plugin to display a list of related posts on your site based on a powerful unique algorithm.
11
 
@@ -313,6 +313,9 @@ add_action(
313
  `
314
 
315
  == Changelog ==
 
 
 
316
  = 5.18.1 (19-April-2021) =
317
  * New: Choose image size for YARPP Thumbnail theme
318
  * [Bugfix](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/): Resolves `join` warning (Part 2/2)
@@ -1129,5 +1132,5 @@ After a break of many years, the plugin is 100% supported now that the baton has
1129
  * Initial upload
1130
 
1131
  == Upgrade Notice ==
1132
- = 5.18.1 =
1133
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
5
  Requires PHP: 5.3
6
  License: GPLv2 or later
7
  Tested up to: 5.7
8
+ Stable tag: 5.18.2
9
 
10
  The most popular plugin to display a list of related posts on your site based on a powerful unique algorithm.
11
 
313
  `
314
 
315
  == Changelog ==
316
+ = 5.18.2 (19-April-2021) =
317
+ * [Bugfix](https://wordpress.org/support/topic/thumbnail-size-wont-change/): Allow default WP image sizes to be picked for the YARPP Thumbnail theme
318
+
319
  = 5.18.1 (19-April-2021) =
320
  * New: Choose image size for YARPP Thumbnail theme
321
  * [Bugfix](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/): Resolves `join` warning (Part 2/2)
1132
  * Initial upload
1133
 
1134
  == Upgrade Notice ==
1135
+ = 5.18.2 =
1136
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
yarpp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Yet Another Related Posts Plugin (YARPP)
4
  Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
- Version: 5.18.1
6
  Author: YARPP
7
  Author URI: https://yarpp.com/
8
  Plugin URI: https://yarpp.com/
@@ -24,7 +24,7 @@ if(!defined('WP_CONTENT_DIR')){
24
  define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
25
  }
26
 
27
- define('YARPP_VERSION', '5.18.1');
28
 
29
  define('YARPP_DIR', dirname(__FILE__));
30
  /**
2
  /*
3
  Plugin Name: Yet Another Related Posts Plugin (YARPP)
4
  Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
+ Version: 5.18.2
6
  Author: YARPP
7
  Author URI: https://yarpp.com/
8
  Plugin URI: https://yarpp.com/
24
  define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
25
  }
26
 
27
+ define('YARPP_VERSION', '5.18.2');
28
 
29
  define('YARPP_DIR', dirname(__FILE__));
30
  /**