Yet Another Related Posts Plugin (YARPP) - Version 5.0.0

Version Description

(2019-07-01) = * Bugfix: Fix warning from using get_currentuserinfo()

Download this release

Release Info

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

Code changes from version 4.6 to 5.0.0

classes/YARPP_Core.php CHANGED
@@ -1145,7 +1145,7 @@ class YARPP {
1145
'<p>'.
1146
sprintf(
1147
__(
1148
- "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>.",
1149
'yarpp'
1150
),
1151
'https://wordpress.org/plugins/yet-another-related-posts-plugin/'
@@ -1321,7 +1321,7 @@ class YARPP {
1321
'<p>'.
1322
sprintf(
1323
__(
1324
- "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>.",
1325
'yarpp'
1326
),
1327
'https://wordpress.org/plugins/yet-another-related-posts-plugin/'
1145
'<p>'.
1146
sprintf(
1147
__(
1148
+ "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.",
1149
'yarpp'
1150
),
1151
'https://wordpress.org/plugins/yet-another-related-posts-plugin/'
1321
'<p>'.
1322
sprintf(
1323
__(
1324
+ "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.",
1325
'yarpp'
1326
),
1327
'https://wordpress.org/plugins/yet-another-related-posts-plugin/'
classes/YARPP_Meta_Box_Contact.php CHANGED
@@ -9,22 +9,22 @@ class YARPP_Meta_Box_Contact extends YARPP_Meta_Box {
9
$out =
10
'<ul class="yarpp_contacts">'.
11
'<li>'.
12
- '<a href="http://wordpress.org/support/plugin/yet-another-related-posts-plugin" target="_blank">'.
13
'<span class="icon icon-wordpress"></span> '.__('YARPP Forum', 'yarpp').
14
'</a>'.
15
'</li>'.
16
'<li>'.
17
- '<a href="http://twitter.com/yarpp" target="_blank">'.
18
'<span class="icon icon-twitter"></span> '.__('YARPP on Twitter', 'yarpp').
19
'</a>'.
20
'</li>'.
21
'<li>'.
22
- '<a href="https://www.facebook.com/YARPPRecommendationEngine" target="_blank">'.
23
- '<span class="icon icon-facebook"></span> YARPP on Facebook'.
24
'</a>'.
25
'</li>'.
26
'<li>'.
27
- '<a href="http://wordpress.org/support/view/plugin-reviews/yet-another-related-posts-plugin" target="_blank">'.
28
'<span class="icon icon-star '.$happy.'"></span> '.__('Review YARPP on WordPress.org', 'yarpp').
29
'</a>'.
30
'</li>'.
9
$out =
10
'<ul class="yarpp_contacts">'.
11
'<li>'.
12
+ '<a href="https://wordpress.org/support/plugin/yet-another-related-posts-plugin/" target="_blank">'.
13
'<span class="icon icon-wordpress"></span> '.__('YARPP Forum', 'yarpp').
14
'</a>'.
15
'</li>'.
16
'<li>'.
17
+ '<a href="https://twitter.com/yarpp" target="_blank">'.
18
'<span class="icon icon-twitter"></span> '.__('YARPP on Twitter', 'yarpp').
19
'</a>'.
20
'</li>'.
21
'<li>'.
22
+ '<a href="https://www.facebook.com/groups/357562101611506/" target="_blank">'.
23
+ '<span class="icon icon-facebook"></span> YARPP User Group on Facebook'.
24
'</a>'.
25
'</li>'.
26
'<li>'.
27
+ '<a href="https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/?rate=5#new-post" target="_blank">'.
28
'<span class="icon icon-star '.$happy.'"></span> '.__('Review YARPP on WordPress.org', 'yarpp').
29
'</a>'.
30
'</li>'.
classes/YARPP_Meta_Box_Display_Feed.php CHANGED
@@ -55,6 +55,6 @@ class YARPP_Meta_Box_Display_Feed extends YARPP_Meta_Box {
55
56
$this->displayorder( 'rss_order', 'rss_displayed' );
57
58
- $this->checkbox( 'rss_promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'rss_displayed' );
59
}
60
}
55
56
$this->displayorder( 'rss_order', 'rss_displayed' );
57
58
+ $this->checkbox( 'rss_promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'rss_displayed' );
59
}
60
}
classes/YARPP_Meta_Box_Display_Web.php CHANGED
@@ -65,6 +65,6 @@ class YARPP_Meta_Box_Display_Web extends YARPP_Meta_Box {
65
echo "</div>";
66
67
$this->displayorder( 'order' );
68
- $this->checkbox( 'promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'yarpp' );
69
}
70
}
65
echo "</div>";
66
67
$this->displayorder( 'order' );
68
+ $this->checkbox( 'promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'yarpp' );
69
}
70
}
includes/template_builtin.php CHANGED
@@ -7,23 +7,20 @@
7
* More information on the custom templates is available at http://mitcho.com/blog/projects/yarpp-3-templates/
8
*/
9
10
- get_currentuserinfo();
11
-
12
$options = array(
13
'before_title',
14
'after_title',
15
'show_excerpt',
16
- 'excerpt_length',
17
- 'before_post',
18
- 'after_post',
19
- 'before_related',
20
- 'after_related',
21
- 'no_results'
22
);
23
24
extract($this->parse_args($args, $options));
25
26
-
27
if (have_posts()) {
28
29
$output .= $before_related."\n";
7
* More information on the custom templates is available at http://mitcho.com/blog/projects/yarpp-3-templates/
8
*/
9
10
$options = array(
11
'before_title',
12
'after_title',
13
'show_excerpt',
14
+ 'excerpt_length',
15
+ 'before_post',
16
+ 'after_post',
17
+ 'before_related',
18
+ 'after_related',
19
+ 'no_results'
20
);
21
22
extract($this->parse_args($args, $options));
23
24
if (have_posts()) {
25
26
$output .= $before_related."\n";
lang/yarpp-by_BY.po CHANGED
@@ -43,7 +43,7 @@ msgstr "%f - гэта каэфіцыент \"падобнасці\" паста
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
- msgstr "Спіс падобных пастоў прадстаўлены вам убудовай <a href='%s'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
+ msgstr "Спіс падобных пастоў прадстаўлены вам убудовай <a href='%s' title='WordPress Related Posts Plugin'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
lang/yarpp-fr_FR.po CHANGED
@@ -159,7 +159,7 @@ msgstr "Il n’y a pas d’entrée similaire."
159
#, php-format
160
#@ yarpp
161
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
162
- msgstr "La liste des entrées similaires est établie par le module d’extension <a href='%s'>YARPP</a>."
163
164
#: class-widget.php:92
165
#: options-meta-boxes.php:35
159
#, php-format
160
#@ yarpp
161
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
162
+ msgstr "La liste des entrées similaires est établie par le module d’extension <a href='%s' title='WordPress Related Posts Plugin'>YARPP</a>."
163
164
#: class-widget.php:92
165
#: options-meta-boxes.php:35
lang/yarpp-lv_LV.po CHANGED
@@ -43,7 +43,7 @@ msgstr "%f - eto koefficient \"pohojesti\" tekuschgo posta i svyazanogo s nim. V
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
- msgstr "Spisok pohojih postov predostavlen vam plaginom <a href='%s'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
+ msgstr "Spisok pohojih postov predostavlen vam plaginom <a href='%s' title='WordPress Related Posts Plugin'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
lang/yarpp-ru_RU.po CHANGED
@@ -43,7 +43,7 @@ msgstr "%f - это коэффициэнт \"похожести\" текущго
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
- msgstr "Список похожих постов предоставлен вам плагином <a href='%s'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
+ msgstr "Список похожих постов предоставлен вам плагином <a href='%s' title='WordPress Related Posts Plugin'>YARPP</a>."
47
48
#: yarpp_options.php:54
49
#@ yarpp
lang/yarpp-uz_UZ.po CHANGED
@@ -43,7 +43,7 @@ msgstr "%f - bu joriy xabar va aloqador xabar o'rtasidagi o'xshashlik koeffitsie
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
- msgstr "Aloqador xabarlar Sizga <a href='%s'>YARPP</a> plagini tomonidan taqdim etildi."
47
48
#: yarpp_options.php:54
49
#@ yarpp
43
#, php-format
44
#@ yarpp
45
msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
46
+ msgstr "Aloqador xabarlar Sizga <a href='%s' title='WordPress Related Posts Plugin'>YARPP</a> plagini tomonidan taqdim etildi."
47
48
#: yarpp_options.php:54
49
#@ yarpp
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
=== Yet Another Related Posts Plugin (YARPP) ===
2
Contributors: jeffparker, shareaholic
3
Tags: related, related posts, similar posts, posts, pages, thumbnails, feeds, multisite, multilingual
4
- Requires at least: 3.3
5
Requires PHP: 5.2
6
License: GPLv2 or later
7
Tested up to: 5.2
8
- Stable tag: 4.6
9
10
Display a list of related posts on your site based on a powerful unique algorithm. Optionally, earn money by including sponsored content.
11
@@ -21,6 +21,8 @@ Yet Another Related Posts Plugin (YARPP) displays pages, posts, and custom post
21
* **An advanced and versatile algorithm**: Using a customizable algorithm considering post titles, content, tags, categories, and custom taxonomies, YARPP finds related content from across your site. [Learn More.](http://wordpress.tv/2011/01/29/michael-%E2%80%9Cmitcho%E2%80%9D-erlewine-the-yet-another-related-posts-plugin-algorithm-explained/)
22
* **Related posts in feeds**: Display related posts in RSS feeds with custom display options.
23
24
This plugin requires PHP 5, MySQL 4.1, and WordPress 3.3 or greater. See [the FAQ](http://wordpress.org/plugins/yet-another-related-posts-plugin/faq/) for answers to common questions.
25
26
== Installation ==
@@ -232,10 +234,13 @@ Yes. Any taxonomy, including custom taxonomies, may be specified in the `weight`
232
If you would like to choose custom taxonomies to choose in the YARPP settings UI, either to exclude certain terms or to consider them in the relatedness formula via the UI, the taxonomy must (a) have either the `show_ui` or `yarpp_support` attribute set to true and (b) must apply to either the post types `post` or `page` or both.
233
234
== Changelog ==
235
- = 4.6 =
236
* [Bugfix](https://wordpress.org/support/topic/plugin-flagged-by-wordfence/): Removed links from Plugin Readme to resolve WordFence false positive.
237
238
- = 4.5 =
239
After a bit of a hiatus, we're back! The plugin had been delisted due to a minor [email address issue](https://make.wordpress.org/plugins/2018/10/22/reminder-plugins-are-closed-if-emails-bounce/). This has been resolved with this release and the plugin has been reinstated. We consider this to be a big step, and yes, after a 6-month hiatus of not being in the plugin directory.🙂
240
241
The plugin is also no longer maintained by Adknowledge. A group of us with **deep expertise in Content Recommendations** and **10+ years experience with maintaining very popular plugins** have very recently taken Yarpp over from Adknowlege. More on this will be shared very soon.
@@ -869,6 +874,6 @@ After a break of many years, the plugin is 100% supported now that the baton has
869
* Initial upload
870
871
== Upgrade Notice ==
872
- = 4.6 =
873
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!
874
1
=== Yet Another Related Posts Plugin (YARPP) ===
2
Contributors: jeffparker, shareaholic
3
Tags: related, related posts, similar posts, posts, pages, thumbnails, feeds, multisite, multilingual
4
+ Requires at least: 3.7
5
Requires PHP: 5.2
6
License: GPLv2 or later
7
Tested up to: 5.2
8
+ Stable tag: 5.0.0
9
10
Display a list of related posts on your site based on a powerful unique algorithm. Optionally, earn money by including sponsored content.
11
21
* **An advanced and versatile algorithm**: Using a customizable algorithm considering post titles, content, tags, categories, and custom taxonomies, YARPP finds related content from across your site. [Learn More.](http://wordpress.tv/2011/01/29/michael-%E2%80%9Cmitcho%E2%80%9D-erlewine-the-yet-another-related-posts-plugin-algorithm-explained/)
22
* **Related posts in feeds**: Display related posts in RSS feeds with custom display options.
23
24
+ The Yet Another Related Posts Plugin is the most popular Related Posts plugin for WordPress, encouraging Discovery and Engagement since 2008.
25
+
26
This plugin requires PHP 5, MySQL 4.1, and WordPress 3.3 or greater. See [the FAQ](http://wordpress.org/plugins/yet-another-related-posts-plugin/faq/) for answers to common questions.
27
28
== Installation ==
234
If you would like to choose custom taxonomies to choose in the YARPP settings UI, either to exclude certain terms or to consider them in the relatedness formula via the UI, the taxonomy must (a) have either the `show_ui` or `yarpp_support` attribute set to true and (b) must apply to either the post types `post` or `page` or both.
235
236
== Changelog ==
237
+ = 5.0.0 (2019-07-01) =
238
+ * [Bugfix](https://wordpress.org/support/topic/php-notice-get_currentuserinfo-is-deprecated-since-version-4-5-0/): Fix warning from using get_currentuserinfo()
239
+
240
+ = 4.6 (2019-07-01) =
241
* [Bugfix](https://wordpress.org/support/topic/plugin-flagged-by-wordfence/): Removed links from Plugin Readme to resolve WordFence false positive.
242
243
+ = 4.5 (2019-05-18) =
244
After a bit of a hiatus, we're back! The plugin had been delisted due to a minor [email address issue](https://make.wordpress.org/plugins/2018/10/22/reminder-plugins-are-closed-if-emails-bounce/). This has been resolved with this release and the plugin has been reinstated. We consider this to be a big step, and yes, after a 6-month hiatus of not being in the plugin directory.🙂
245
246
The plugin is also no longer maintained by Adknowledge. A group of us with **deep expertise in Content Recommendations** and **10+ years experience with maintaining very popular plugins** have very recently taken Yarpp over from Adknowlege. More on this will be shared very soon.
874
* Initial upload
875
876
== Upgrade Notice ==
877
+ = 5.0.0 =
878
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!
879
yarpp.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
Plugin Name: Yet Another Related Posts Plugin
4
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
- Version: 4.6
6
Author: YARPP
7
Author URI: http://www.yarpp.com/
8
Plugin URI: http://www.yarpp.com/
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_DIR')){
14
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
15
}
16
17
- define('YARPP_VERSION', '4.6');
18
define('YARPP_DIR', dirname(__FILE__));
19
define('YARPP_URL', plugins_url('',__FILE__));
20
define('YARPP_NO_RELATED', ':(');
2
/*
3
Plugin Name: Yet Another Related Posts Plugin
4
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
+ Version: 5.0.0
6
Author: YARPP
7
Author URI: http://www.yarpp.com/
8
Plugin URI: http://www.yarpp.com/
14
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
15
}
16
17
+ define('YARPP_VERSION', '5.0.0');
18
define('YARPP_DIR', dirname(__FILE__));
19
define('YARPP_URL', plugins_url('',__FILE__));
20
define('YARPP_NO_RELATED', ':(');