Yet Another Related Posts Plugin (YARPP) - Version 3.0.7b1

Version Description

Download this release

Release Info

Developer mitchoyoshitaka
Plugin Icon 128x128 Yet Another Related Posts Plugin (YARPP)
Version 3.0.7b1
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7b1

Files changed (3) hide show
  1. includes.php +11 -9
  2. readme.txt +2 -1
  3. yarpp.php +1 -1
includes.php CHANGED
@@ -126,8 +126,8 @@ function yarpp_activate() {
126
  return 0;
127
  }
128
  }
129
- add_option('yarpp_version','3.06');
130
- update_option('yarpp_version','3.06');
131
  return 1;
132
  }
133
 
@@ -178,8 +178,8 @@ function yarpp_upgrade_check($inuse = false) {
178
  $wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
179
  }
180
 
181
- if (eregi_replace('[a-z].*$','',get_option('yarpp_version')) < 3.06 or get_option('yarpp_version') != '3.06') {
182
- update_option('yarpp_version','3.06');
183
 
184
  //if (!$inuse)
185
  // echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);">'.__('<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href="http://mitcho.com/code/yarpp/">YARPP documentation</a>. (This message will not be displayed again.)</p>','yarpp').'</div>';
@@ -220,11 +220,13 @@ function widget_yarpp_init() {
220
  extract($args);
221
  global $wpdb, $post;
222
  if (is_single() && have_posts()) {
223
- the_post();
224
- echo $before_widget;
225
- echo $before_title . __('Related Posts','yarpp') . $after_title;
226
- echo yarpp_related(array('post'),array());
227
- echo $after_widget;
 
 
228
  }
229
  }
230
  register_sidebar_widget(__('YARPP','yarpp'), 'widget_yarpp');
126
  return 0;
127
  }
128
  }
129
+ add_option('yarpp_version','3.07b1');
130
+ update_option('yarpp_version','3.07b1');
131
  return 1;
132
  }
133
 
178
  $wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
179
  }
180
 
181
+ if (eregi_replace('[a-z].*$','',get_option('yarpp_version')) < 3.07 or get_option('yarpp_version') != '3.07') {
182
+ update_option('yarpp_version','3.07');
183
 
184
  //if (!$inuse)
185
  // echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);">'.__('<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href="http://mitcho.com/code/yarpp/">YARPP documentation</a>. (This message will not be displayed again.)</p>','yarpp').'</div>';
220
  extract($args);
221
  global $wpdb, $post;
222
  if (is_single() && have_posts()) {
223
+ while (have_posts()) {
224
+ the_post();
225
+ echo $before_widget;
226
+ echo $before_title . __('Related Posts','yarpp') . $after_title;
227
+ echo yarpp_related(array('post'),array());
228
+ echo $after_widget;
229
+ }
230
  }
231
  }
232
  register_sidebar_widget(__('YARPP','yarpp'), 'widget_yarpp');
readme.txt CHANGED
@@ -252,4 +252,5 @@ If you are a bilingual speaker of English and another language and an avid user
252
  * Added Russian (`ru_RU`) localization by Marat Latypov
253
  * Confirmed 2.8 compatibility
254
  * Added note on [incompatibility with SEO Pager plugin](http://wordpress.org/support/topic/267966)
255
-
 
252
  * Added Russian (`ru_RU`) localization by Marat Latypov
253
  * Confirmed 2.8 compatibility
254
  * Added note on [incompatibility with SEO Pager plugin](http://wordpress.org/support/topic/267966)
255
+ * 3.0.7
256
+ * Bugfix: additional bugfix for widgets.
yarpp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Plugin URI: http://mitcho.com/code/yarpp/
5
  Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
6
- Version: 3.0.6
7
  Author: mitcho (Michael Yoshitaka Erlewine)
8
  Author URI: http://mitcho.com/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&charset=UTF%2d8
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Plugin URI: http://mitcho.com/code/yarpp/
5
  Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
6
+ Version: 3.0.7b1
7
  Author: mitcho (Michael Yoshitaka Erlewine)
8
  Author URI: http://mitcho.com/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&charset=UTF%2d8