Yet Another Related Posts Plugin (YARPP) - Version 4.1.1

Version Description

  • Bugfix: Incompatibility with PHP < 5.3.x
Download this release

Release Info

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

Code changes from version 4.1 to 4.1.1

Files changed (3) hide show
  1. classes/YARPP_Widget.php +8 -5
  2. readme.txt +4 -1
  3. yarpp.php +2 -2
classes/YARPP_Widget.php CHANGED
@@ -1,7 +1,8 @@
1
  <?php
2
-
3
- // vaguely based on code by MK Safi
4
- // http://msafi.com/fix-yet-another-related-posts-plugin-yarpp-widget-and-add-it-to-the-sidebar/
 
5
  class YARPP_Widget extends WP_Widget {
6
 
7
  public function __construct() {
@@ -187,6 +188,8 @@ class YARPP_Widget extends WP_Widget {
187
  /**
188
  * @since 2.0 Add as a widget
189
  */
190
- add_action('widgets_init', function(){register_widget('YARPP_Widget');});
 
 
191
 
192
- ?>
1
  <?php
2
+ /*
3
+ * Vaguely based on code by MK Safi
4
+ * http://msafi.com/fix-yet-another-related-posts-plugin-yarpp-widget-and-add-it-to-the-sidebar/
5
+ */
6
  class YARPP_Widget extends WP_Widget {
7
 
8
  public function __construct() {
188
  /**
189
  * @since 2.0 Add as a widget
190
  */
191
+ function yarpp_widget_init() {
192
+ register_widget('YARPP_Widget');
193
+ }
194
 
195
+ add_action('widgets_init', 'yarpp_widget_init');
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://yarpp.com/
6
  Tags: feeds, pages, posts, related, rss, yarpp, ads, multisite, multilingual, thumbnails, related posts, related content
7
  Requires at least: 3.3
8
  Tested up to: 3.7.1
9
- Stable tag: 4.1
10
  License: GPLv2 or later
11
 
12
  Display a list of related entries on your site and feeds based on a unique algorithm. Now with thumbnail support built-in!
@@ -322,6 +322,9 @@ YARPP is currently localized in the following languages:
322
 
323
  == Changelog ==
324
 
 
 
 
325
  = 4.1 =
326
  * Added optional YARPP Pro enhancements:
327
  + Revenue-generating ad content interspersed with related posts display
6
  Tags: feeds, pages, posts, related, rss, yarpp, ads, multisite, multilingual, thumbnails, related posts, related content
7
  Requires at least: 3.3
8
  Tested up to: 3.7.1
9
+ Stable tag: 4.1.1
10
  License: GPLv2 or later
11
 
12
  Display a list of related entries on your site and feeds based on a unique algorithm. Now with thumbnail support built-in!
322
 
323
  == Changelog ==
324
 
325
+ = 4.1.1 =
326
+ * Bugfix: Incompatibility with PHP < 5.3.x
327
+
328
  = 4.1 =
329
  * Added optional YARPP Pro enhancements:
330
  + Revenue-generating ad content interspersed with related posts display
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. Enabling YARPP Pro gives you access to even more powerful features. <a href="http://yarpp.com" target="_blank">Find out more</a>.
5
- Version: 4.1
6
  Author: Adknowledge
7
  Author URI: http://yarpp.com/
8
  Plugin URI: http://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.1');
18
  define('YARPP_DIR', dirname(__FILE__));
19
  define('YARPP_NO_RELATED', ':(');
20
  define('YARPP_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. Enabling YARPP Pro gives you access to even more powerful features. <a href="http://yarpp.com" target="_blank">Find out more</a>.
5
+ Version: 4.1.1
6
  Author: Adknowledge
7
  Author URI: http://yarpp.com/
8
  Plugin URI: http://yarpp.com/
14
  define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
15
  }
16
 
17
+ define('YARPP_VERSION', '4.1.1');
18
  define('YARPP_DIR', dirname(__FILE__));
19
  define('YARPP_NO_RELATED', ':(');
20
  define('YARPP_RELATED', ':)');