Contextual Related Posts - Version 1.3.1

Version Description

Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Contextual Related Posts
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3 to 1.3.1

Files changed (2) hide show
  1. contextual-related-posts.php +5 -4
  2. readme.txt +1 -0
contextual-related-posts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Contextual Related Posts
4
- Version: 1.3
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
6
  Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
7
  Author: Ajay D'Souza
@@ -73,11 +73,12 @@ function ald_crp() {
73
  } //end of foreach loop
74
  $output .= '</ul>';
75
  }else{
76
- $output .= (($_POST['blank_output']) ? '' : '<p>'.__('No related posts found','ald_crp_plugin').'</p>');
 
77
  }
78
  if ((strpos($output, '<li>')) === false) {
79
  $output = '<div id="crp_related">';
80
- $output .= (($_POST['blank_output']) ? '' : '<p>'.__('No related posts found','ald_crp_plugin').'</p>');
81
  }
82
  $output .= '</div>';
83
 
@@ -119,7 +120,7 @@ function crp_default_options() {
119
  limit => '5', // How many posts to display?
120
  match_content => true, // Match against post content as well as title
121
  exclude_pages => true, // Exclude Pages
122
- blank_output => true, // Match against post tags as well as title
123
  exclude_categories => '', // Exclude these categories
124
  exclude_cat_slugs => '', // Exclude these categories
125
  );
1
  <?php
2
  /*
3
  Plugin Name: Contextual Related Posts
4
+ Version: 1.3.1
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
6
  Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
7
  Author: Ajay D'Souza
73
  } //end of foreach loop
74
  $output .= '</ul>';
75
  }else{
76
+ $output = '<div id="crp_related">';
77
+ $output .= ($crp_settings['blank_output']) ? ' ' : '<p>'.__('No related posts found','ald_crp_plugin').'</p>';
78
  }
79
  if ((strpos($output, '<li>')) === false) {
80
  $output = '<div id="crp_related">';
81
+ $output .= ($crp_settings['blank_output']) ? ' ' : '<p>'.__('No related posts found','ald_crp_plugin').'</p>';
82
  }
83
  $output .= '</div>';
84
 
120
  limit => '5', // How many posts to display?
121
  match_content => true, // Match against post content as well as title
122
  exclude_pages => true, // Exclude Pages
123
+ blank_output => true, // Blank output?
124
  exclude_categories => '', // Exclude these categories
125
  exclude_cat_slugs => '', // Exclude these categories
126
  );
readme.txt CHANGED
@@ -32,6 +32,7 @@ Now, you can choose to exclude posts from certain categories as well as exclude
32
 
33
  = Changelog =
34
 
 
35
  * 1.3
36
  - Better optimization in WP-Admin area.
37
  - Fixed compatibility problems with Simple Tags plugin
32
 
33
  = Changelog =
34
 
35
+ * 1.3.1 - Fixed bug that didn't blank out posts even when option was selected
36
  * 1.3
37
  - Better optimization in WP-Admin area.
38
  - Fixed compatibility problems with Simple Tags plugin