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

Version Description

Download this release

Release Info

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

Code changes from version 2.6.0.0 to 2.6.0.1

Files changed (3) hide show
  1. readme.txt +3 -1
  2. similar-posts-admin.php +12 -9
  3. similar-posts.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donat
4
  Tags: posts, related, similar, related posts, similar posts, tags, post-plugins
5
  Requires at least: 1.5
6
  Tested up to: 2.6.0
7
- Stable tag: 2.6.0.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.0.0
35
  * version bump to indicate compatibility with WP 2.6
36
  * fix to really include attachments
4
  Tags: posts, related, similar, related posts, similar posts, tags, post-plugins
5
  Requires at least: 1.5
6
  Tested up to: 2.6.0
7
+ Stable tag: 2.6.0.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.0.1
35
+ * bug fix: installation code was failing on some systems
36
  * 2.6.0.0
37
  * version bump to indicate compatibility with WP 2.6
38
  * fix to really include attachments
similar-posts-admin.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- // Admin stuff for Similar Posts Plugin, Version 2.6.0.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');
@@ -686,15 +686,18 @@ function similar_posts_install() {
686
  error_reporting($errorlevel);
687
  }
688
 
 
 
689
  if (!function_exists('ppl_plugin_basename')) {
690
- function ppl_plugin_basename($file) {
691
- $file = str_replace('\\','/',$file); // sanitize for Win32 installs
692
- $file = preg_replace('|/+|','/', $file); // remove any duplicate slash
693
- $plugin_dir = str_replace('\\','/',WP_PLUGIN_DIR); // sanitize for Win32 installs
694
- $plugin_dir = preg_replace('|/+|','/', $plugin_dir); // remove any duplicate slash
695
- $file = preg_replace('|^' . preg_quote($plugin_dir, '|') . '/|','',$file); // get relative path from plugins dir
696
- return $file;
697
- }
 
698
  }
699
 
700
  add_action('activate_'.str_replace('-admin', '', ppl_plugin_basename(__FILE__)), 'similar_posts_install');
1
  <?php
2
 
3
+ // Admin stuff for Similar Posts Plugin, Version 2.6.0.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');
686
  error_reporting($errorlevel);
687
  }
688
 
689
+
690
+
691
  if (!function_exists('ppl_plugin_basename')) {
692
+ if ( !defined('WP_PLUGIN_DIR') ) define( 'WP_PLUGIN_DIR', ABSPATH . 'wp-content/plugins' );
693
+ function ppl_plugin_basename($file) {
694
+ $file = str_replace('\\','/',$file); // sanitize for Win32 installs
695
+ $file = preg_replace('|/+|','/', $file); // remove any duplicate slash
696
+ $plugin_dir = str_replace('\\','/',WP_PLUGIN_DIR); // sanitize for Win32 installs
697
+ $plugin_dir = preg_replace('|/+|','/', $plugin_dir); // remove any duplicate slash
698
+ $file = preg_replace('|^' . preg_quote($plugin_dir, '|') . '/|','',$file); // get relative path from plugins dir
699
+ return $file;
700
+ }
701
  }
702
 
703
  add_action('activate_'.str_replace('-admin', '', ppl_plugin_basename(__FILE__)), 'similar_posts_install');
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.0.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.0.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.0.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.0.1';
26
 
27
  /*
28
  Template Tag: Displays the posts most similar to the current post.