Similar Posts – Best Related Posts Plugin for WordPress - Version 2.6.1.1

Version Description

Download this release

Release Info

Developer RobMarsh
Plugin Icon 128x128 Similar Posts – Best Related Posts Plugin for WordPress
Version 2.6.1.1
Comparing to
See all releases

Code changes from version 2.6.1.0 to 2.6.1.1

languages/it/stemmer.php CHANGED
@@ -323,6 +323,27 @@ class ItalianStemmer {
323
  http://rmarsh.com
324
  */
325
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  $Stemmer = new ItalianStemmer();
327
  $StemCache = array();
328
 
323
  http://rmarsh.com
324
  */
325
 
326
+ if (!function_exists('strpbrk')) {
327
+ function strpbrk( $haystack, $char_list ) {
328
+ $strlen = strlen($char_list);
329
+ $found = false;
330
+ for( $i=0; $i<$strlen; $i++ ) {
331
+ if( ($tmp = strpos($haystack, $char_list{$i})) !== false ) {
332
+ if(!$found) {
333
+ $pos = $tmp;
334
+ $found = true;
335
+ continue;
336
+ }
337
+ $pos = min($pos, $tmp);
338
+ }
339
+ }
340
+ if(!$found) {
341
+ return false;
342
+ }
343
+ return substr($haystack, $pos);
344
+ }
345
+ }
346
+
347
  $Stemmer = new ItalianStemmer();
348
  $StemCache = array();
349
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://rmarsh.com/donate/similar-posts/
4
  Tags: posts, related, similar, related posts, similar posts, tags, post-plugins
5
  Requires at least: 1.5
6
  Tested up to: 2.6.1
7
- Stable tag: 2.6.1.0
8
  Displays a list of posts similar to the current one based on content, title and/or tags.
9
 
10
  == Description ==
@@ -31,6 +31,8 @@ This plugin **requires** the latest version of the *Post-Plugin Library:* [downl
31
 
32
  == Version History ==
33
 
 
 
34
  * 2.6.1.0
35
  * the current post can be marked manually
36
  * widgets now honour the option to show no output if list is empty
4
  Tags: posts, related, similar, related posts, similar posts, tags, post-plugins
5
  Requires at least: 1.5
6
  Tested up to: 2.6.1
7
+ Stable tag: 2.6.1.1
8
  Displays a list of posts similar to the current one based on content, title and/or tags.
9
 
10
  == Description ==
31
 
32
  == Version History ==
33
 
34
+ * 2.6.1.1
35
+ * fix to italian language stemmer for PHP4
36
  * 2.6.1.0
37
  * the current post can be marked manually
38
  * widgets now honour the option to show no output if list is empty
similar-posts-admin.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- // Admin stuff for Similar Posts Plugin, Version 2.6.1.0
4
 
5
  function similar_posts_option_menu() {
6
  add_options_page(__('Similar Posts Options', 'similar_posts'), __('Similar Posts', 'similar_posts'), 8, 'similar-posts', 'similar_posts_options_page');
1
  <?php
2
 
3
+ // Admin stuff for Similar Posts Plugin, Version 2.6.1.1
4
 
5
  function similar_posts_option_menu() {
6
  add_options_page(__('Similar Posts Options', 'similar_posts'), __('Similar Posts', 'similar_posts'), 8, 'similar-posts', 'similar_posts_options_page');
similar-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name:Similar Posts
4
  Plugin URI: http://rmarsh.com/plugins/similar-posts/
5
  Description: Displays a <a href="options-general.php?page=similar-posts.php">highly configurable</a> list of related posts. Similarity can be based on any combination of word usage in the content, title, or tags. Don't be disturbed if it takes a few moments to complete the installation -- the plugin is indexing your posts. <a href="http://rmarsh.com/plugins/post-options/">Instructions and help online</a>. Requires the latest version of the <a href="http://wordpress.org/extend/plugins/post-plugin-library/">Post-Plugin Library</a> to be installed.
6
- Version: 2.6.1.0
7
  Author: Rob Marsh, SJ
8
  Author URI: http://rmarsh.com/
9
  */
@@ -22,7 +22,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
  GNU General Public License for more details: http://www.gnu.org/licenses/gpl.txt
23
  */
24
 
25
- $similar_posts_version = $similar_posts_feed_version= '2.6.1.0';
26
 
27
  /*
28
  Template Tag: Displays the posts most similar to the current post.
3
  Plugin Name:Similar Posts
4
  Plugin URI: http://rmarsh.com/plugins/similar-posts/
5
  Description: Displays a <a href="options-general.php?page=similar-posts.php">highly configurable</a> list of related posts. Similarity can be based on any combination of word usage in the content, title, or tags. Don't be disturbed if it takes a few moments to complete the installation -- the plugin is indexing your posts. <a href="http://rmarsh.com/plugins/post-options/">Instructions and help online</a>. Requires the latest version of the <a href="http://wordpress.org/extend/plugins/post-plugin-library/">Post-Plugin Library</a> to be installed.
6
+ Version: 2.6.1.1
7
  Author: Rob Marsh, SJ
8
  Author URI: http://rmarsh.com/
9
  */
22
  GNU General Public License for more details: http://www.gnu.org/licenses/gpl.txt
23
  */
24
 
25
+ $similar_posts_version = $similar_posts_feed_version= '2.6.1.1';
26
 
27
  /*
28
  Template Tag: Displays the posts most similar to the current post.