Version Description
(25-August-2021)
Download this release
Release Info
Developer | jeffparker |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 5.27.4 |
Comparing to | |
See all releases |
Code changes from version 5.27.3 to 5.27.4
- classes/YARPP_Core.php +10 -3
- readme.txt +5 -2
- yarpp.php +2 -2
classes/YARPP_Core.php
CHANGED
@@ -716,7 +716,7 @@ class YARPP {
|
|
716 |
/**
|
717 |
* Get all the available templates
|
718 |
*
|
719 |
-
* @since 5.
|
720 |
* @return array
|
721 |
*/
|
722 |
public function get_all_templates() {
|
@@ -1521,8 +1521,15 @@ class YARPP {
|
|
1521 |
}
|
1522 |
return $output;
|
1523 |
}
|
1524 |
-
|
1525 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1526 |
// make $related_query available to custom templates. It may be in use by old custom templates
|
1527 |
global $wp_query;
|
1528 |
$related_query = $wp_query;
|
716 |
/**
|
717 |
* Get all the available templates
|
718 |
*
|
719 |
+
* @since 5.27.2
|
720 |
* @return array
|
721 |
*/
|
722 |
public function get_all_templates() {
|
1521 |
}
|
1522 |
return $output;
|
1523 |
}
|
1524 |
+
/**
|
1525 |
+
* Returns the YARPP template html data.
|
1526 |
+
*
|
1527 |
+
* @param int $reference_ID reference id.
|
1528 |
+
* @param array $args see readme.txt installation tab's "YARPP functions()" section.
|
1529 |
+
* @param bool $is_demo whether to add yarpp-demo-related class to div or not.
|
1530 |
+
* @return string return html data.
|
1531 |
+
*/
|
1532 |
+
protected function get_template_content( $reference_ID = null, $args = array(), $is_demo = false ) {
|
1533 |
// make $related_query available to custom templates. It may be in use by old custom templates
|
1534 |
global $wp_query;
|
1535 |
$related_query = $wp_query;
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.7
|
|
6 |
Requires PHP: 5.3
|
7 |
License: GPLv2 or later
|
8 |
Tested up to: 5.8
|
9 |
-
Stable tag: 5.27.
|
10 |
|
11 |
The best WordPress plugin for displaying related posts. Simple and flexible, with a powerful proven algorithm and inbuilt caching.
|
12 |
|
@@ -529,6 +529,9 @@ Beginning with version 4.0.7, YARPP includes clean uninstall functionality. If y
|
|
529 |
|
530 |
|
531 |
== Changelog ==
|
|
|
|
|
|
|
532 |
= 5.27.3 (16-August-2021) =
|
533 |
* [Bugfix](https://wordpress.org/support/topic/fatal-error-for-custom-template-after-upgrading-5-27-2/): Make `$related_query` available to custom templates
|
534 |
|
@@ -1413,5 +1416,5 @@ After a break of many years, the plugin is 100% supported now that the baton has
|
|
1413 |
* Initial upload
|
1414 |
|
1415 |
== Upgrade Notice ==
|
1416 |
-
= 5.27.
|
1417 |
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!
|
6 |
Requires PHP: 5.3
|
7 |
License: GPLv2 or later
|
8 |
Tested up to: 5.8
|
9 |
+
Stable tag: 5.27.4
|
10 |
|
11 |
The best WordPress plugin for displaying related posts. Simple and flexible, with a powerful proven algorithm and inbuilt caching.
|
12 |
|
529 |
|
530 |
|
531 |
== Changelog ==
|
532 |
+
= 5.27.4 (25-August-2021) =
|
533 |
+
* [Bugfix](https://wordpress.org/support/topic/php-8-deprecated-required-parameter-follows-optional/): PHP 8 compatibility by making `$args` optional on `YARPP::get_template_content()`
|
534 |
+
|
535 |
= 5.27.3 (16-August-2021) =
|
536 |
* [Bugfix](https://wordpress.org/support/topic/fatal-error-for-custom-template-after-upgrading-5-27-2/): Make `$related_query` available to custom templates
|
537 |
|
1416 |
* Initial upload
|
1417 |
|
1418 |
== Upgrade Notice ==
|
1419 |
+
= 5.27.4 =
|
1420 |
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.
|
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.
|
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.27.4
|
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.27.4' );
|
29 |
|
30 |
define( 'YARPP_DIR', dirname( __FILE__ ) );
|
31 |
/**
|