Search Exclude - Version 1.2.1

Version Description

  • Fixed bug when unable to save post on PHP <5.5 because of boolval() usage
Download this release

Release Info

Developer pronskiy
Plugin Icon 128x128 Search Exclude
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (2) hide show
  1. readme.txt +5 -2
  2. search-exclude.php +2 -2
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: pronskiy, williamdodson, stevelock
3
  Tags: admin, plugin, search
4
  Requires at least: 3.3
5
- Tested up to: 4.1
6
- Stable tag: 1.2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -29,6 +29,9 @@ On the plugin settings page you can also see the list of all the items that are
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 1.2.0 =
33
  * Added quick and bulk edit support
34
  * Tested up to WP 4.1
2
  Contributors: pronskiy, williamdodson, stevelock
3
  Tags: admin, plugin, search
4
  Requires at least: 3.3
5
+ Tested up to: 4.3
6
+ Stable tag: 1.2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
29
 
30
  == Changelog ==
31
 
32
+ = 1.2.1 =
33
+ * Fixed bug when unable to save post on PHP <5.5 because of boolval() usage
34
+
35
  = 1.2.0 =
36
  * Added quick and bulk edit support
37
  * Tested up to WP 4.1
search-exclude.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Search Exclude
4
  Description: Hide any page or post from the WordPress search results by checking off the checkbox.
5
- Version: 1.2.0
6
  Author: Roman Pronskiy
7
  Author URI: http://pronskiy.com
8
  Plugin URI: http://wordpress.org/plugins/search-exclude/
@@ -68,7 +68,7 @@ class SearchExclude
68
 
69
  protected function savePostIdsToSearchExclude($postIds, $exclude)
70
  {
71
- $exclude = boolval($exclude);
72
  $excluded = $this->getExcluded();
73
 
74
  if ($exclude) {
2
  /*
3
  Plugin Name: Search Exclude
4
  Description: Hide any page or post from the WordPress search results by checking off the checkbox.
5
+ Version: 1.2.1
6
  Author: Roman Pronskiy
7
  Author URI: http://pronskiy.com
8
  Plugin URI: http://wordpress.org/plugins/search-exclude/
68
 
69
  protected function savePostIdsToSearchExclude($postIds, $exclude)
70
  {
71
+ $exclude = (bool) $exclude;
72
  $excluded = $this->getExcluded();
73
 
74
  if ($exclude) {