Yet Another Related Posts Plugin (YARPP) - Version 5.30.1

Version Description

(08-November-2022) = * Bugfix: Fixes issue caused by stricter type checks for arithmetic operators in PHP8

Download this release

Release Info

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

Code changes from version 5.27.8 to 5.30.1

includes/template_builtin.php CHANGED
@@ -30,7 +30,7 @@ if ( have_posts() ) {
30
  $link = get_permalink();
31
  $tooltip = esc_attr( ( get_the_title() ) ? get_the_title() : get_the_ID() );
32
  $title = get_the_title();
33
- $round = round( get_the_score(), 1 );
34
  $score = ( current_user_can( 'manage_options' ) && $domain !== 'rss' && ! is_admin() )
35
  ? '<abbr title="' . sprintf( __( '%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.', 'yet-another-related-posts-plugin' ), $round ) . '">(' . $round . ')</abbr>'
36
  : null;
30
  $link = get_permalink();
31
  $tooltip = esc_attr( ( get_the_title() ) ? get_the_title() : get_the_ID() );
32
  $title = get_the_title();
33
+ $round = round( (float)get_the_score(), 1 );
34
  $score = ( current_user_can( 'manage_options' ) && $domain !== 'rss' && ! is_admin() )
35
  ? '<abbr title="' . sprintf( __( '%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.', 'yet-another-related-posts-plugin' ), $round ) . '">(' . $round . ')</abbr>'
36
  : null;
includes/template_metabox.php CHANGED
@@ -21,7 +21,7 @@ if ( have_posts() ) {
21
  while ( have_posts() ) {
22
  the_post();
23
  $output .= "<li id='yarpp-related-" . get_the_ID() . "'><a class='row-title' href='post.php?action=edit&post=" . get_the_ID() . "'>" . get_the_title() . '</a>';
24
- $output .= ' (' . round( get_the_score(), 3 ) . ')';
25
  $output .= " <span class='yarpp-related-action' id=yarpp-related-" . get_the_ID() . "-action'><span class='edit'><a href='post.php?action=edit&post=" . get_the_ID() . "'>" . __( 'Edit', 'yet-another-related-posts-plugin' ) . "</a></span> | <span class='view'><a href='" . get_permalink() . "' target='_blank'>" . __( 'View', 'yet-another-related-posts-plugin' ) . '</a></span></span>';
26
  $output .= '</li>';
27
  }
21
  while ( have_posts() ) {
22
  the_post();
23
  $output .= "<li id='yarpp-related-" . get_the_ID() . "'><a class='row-title' href='post.php?action=edit&post=" . get_the_ID() . "'>" . get_the_title() . '</a>';
24
+ $output .= ' (' . round( (float)get_the_score(), 3 ) . ')';
25
  $output .= " <span class='yarpp-related-action' id=yarpp-related-" . get_the_ID() . "-action'><span class='edit'><a href='post.php?action=edit&post=" . get_the_ID() . "'>" . __( 'Edit', 'yet-another-related-posts-plugin' ) . "</a></span> | <span class='view'><a href='" . get_permalink() . "' target='_blank'>" . __( 'View', 'yet-another-related-posts-plugin' ) . '</a></span></span>';
26
  $output .= '</li>';
27
  }
includes/template_widget.php CHANGED
@@ -5,7 +5,7 @@ if ( have_posts() ) {
5
  while ( have_posts() ) {
6
  the_post();
7
  $output .= '<li><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a>';
8
- // $output .= ' ('.round(get_the_score(),3).')';
9
  $output .= '</li>';
10
  }
11
  $output .= '</ol>';
5
  while ( have_posts() ) {
6
  the_post();
7
  $output .= '<li><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a>';
8
+ // $output .= ' ('.round(float()get_the_score(),3).')';
9
  $output .= '</li>';
10
  }
11
  $output .= '</ol>';
readme.txt CHANGED
@@ -5,8 +5,8 @@ Donate link: https://yarpp.com
5
  Requires at least: 3.7
6
  Requires PHP: 5.3
7
  License: GPLv2 or later
8
- Tested up to: 6.0
9
- Stable tag: 5.27.8
10
 
11
  The best WordPress plugin for displaying related posts. Simple and flexible, with a powerful proven algorithm and inbuilt caching.
12
 
@@ -563,6 +563,9 @@ Beginning with version 4.0.7, YARPP includes clean uninstall functionality. If y
563
 
564
  == Changelog ==
565
 
 
 
 
566
  = 5.27.8 (01-December-2021) =
567
  * New: `[yarpp]` shortcode supports all the same parameters as `yarpp_related()`. [See the updated documentation.](https://wordpress.org/plugins/yet-another-related-posts-plugin/#installation)
568
  * Bugfix: Apply the additional CSS class(es) defined in YARPP Advanced Block settings
@@ -1472,5 +1475,5 @@ After a break of many years, the plugin is 100% supported now that the baton has
1472
  * Initial upload
1473
 
1474
  == Upgrade Notice ==
1475
- = 5.27.8 =
1476
  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 at least: 3.7
6
  Requires PHP: 5.3
7
  License: GPLv2 or later
8
+ Tested up to: 6.1
9
+ Stable tag: 5.30.1
10
 
11
  The best WordPress plugin for displaying related posts. Simple and flexible, with a powerful proven algorithm and inbuilt caching.
12
 
563
 
564
  == Changelog ==
565
 
566
+ = 5.30.1 (08-November-2022) =
567
+ * [Bugfix](https://wordpress.org/support/topic/something-wrong-with-yaarp-plugin-this-morning/): Fixes issue caused by stricter type checks for arithmetic operators in PHP8
568
+
569
  = 5.27.8 (01-December-2021) =
570
  * New: `[yarpp]` shortcode supports all the same parameters as `yarpp_related()`. [See the updated documentation.](https://wordpress.org/plugins/yet-another-related-posts-plugin/#installation)
571
  * Bugfix: Apply the additional CSS class(es) defined in YARPP Advanced Block settings
1475
  * Initial upload
1476
 
1477
  == Upgrade Notice ==
1478
+ = 5.30.1 =
1479
  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.27.8
6
  Author: YARPP
7
  Author URI: https://yarpp.com/
8
  Plugin URI: https://yarpp.com/
@@ -25,7 +25,7 @@ if ( ! defined( 'WP_CONTENT_DIR' ) ) {
25
  define( 'WP_CONTENT_DIR', substr( $tr, 0, strrpos( $tr, '/' ) ) );
26
  }
27
 
28
- define( 'YARPP_VERSION', '5.27.8' );
29
 
30
  define( 'YARPP_DIR', dirname( __FILE__ ) );
31
  /**
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.30.1
6
  Author: YARPP
7
  Author URI: https://yarpp.com/
8
  Plugin URI: https://yarpp.com/
25
  define( 'WP_CONTENT_DIR', substr( $tr, 0, strrpos( $tr, '/' ) ) );
26
  }
27
 
28
+ define( 'YARPP_VERSION', '5.30.1' );
29
 
30
  define( 'YARPP_DIR', dirname( __FILE__ ) );
31
  /**