Skip to content

Commit

Permalink
Release v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pronskiy committed Jul 8, 2014
1 parent 0605889 commit 74176ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ You can also view the list of all the items that are excluded from search on the

### Changelog

#### 1.0.6
* Fixed search filtering for AJAX requests

#### 1.0.5
* Not excluding items from search results on admin interface

Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Search Exclude ===
Contributors: pronskiy, williamdodson
Contributors: pronskiy, williamdodson, stevelock
Tags: admin, plugin, search
Requires at least: 3.3
Tested up to: 3.9
Stable tag: 1.0.5
Stable tag: 1.0.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -28,6 +28,9 @@ You can also view the list of all the items that are excluded from search on the

== Changelog ==

= 1.0.6 =
* Fixed search filtering for AJAX requests

= 1.0.5 =
* Not excluding items from search results on admin interface

Expand Down
6 changes: 3 additions & 3 deletions search-exclude.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Search Exclude
Description: Exclude any page or post from the WordPress search results by checking off the checkbox.
Version: 1.0.5
Version: 1.0.6
Author: Roman Pronskiy
Author URI: http://pronskiy.com
Plugin URI: http://wordpress.org/plugins/search-exclude/
Expand Down Expand Up @@ -119,7 +119,7 @@ public function adminMenu()

public function searchFilter($query)
{
if ((!is_admin() || DOING_AJAX) && $query->is_search) {
if ((!is_admin() || (defined('DOING_AJAX') && DOING_AJAX)) && $query->is_search) {
$query->set('post__not_in', array_merge($query->get('post__not_in'), $this->getExcluded()));
}
return $query;
Expand Down Expand Up @@ -160,4 +160,4 @@ public function saveOptions()
}
}
}
$pluginSearchExclude = new SearchExclude();
$pluginSearchExclude = new SearchExclude();

0 comments on commit 74176ca

Please sign in to comment.