Search Everything - Version 6.1.7

Version Description

Download this release

Release Info

Developer dancameron
Plugin Icon wp plugin Search Everything
Version 6.1.7
Comparing to
See all releases

Code changes from version 6.1.5 to 6.1.7

Files changed (3) hide show
  1. readme.txt +6 -2
  2. search-everything.php +14 -4
  3. views/options.php +1 -1
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: dancameron, sproutventure, ericlebail
3
  Donate link: http://www.amazon.com/wishlist/3EM84J7FVHE6S
4
  Tags: search, tag search, category search, category exclusion, comment search, page search, admin, seo
5
- Requires at least: 2.1
6
  Tested up to: 2.8
7
- Stable tag: 6.1.5
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
@@ -25,6 +25,8 @@ Search Everything increases the ability of the default Wordpress Search, options
25
  * Exclude Posts from search
26
  * Exclude Categories from search
27
 
 
 
28
  * 6.1.5 - Major Exclude Bug fix.
29
  * 6.1.4 - New Translations (IT)
30
  * 6.1.3 - Exclusion Bug Fix.
@@ -35,6 +37,8 @@ Search Everything increases the ability of the default Wordpress Search, options
35
 
36
  == Update Log ==
37
 
 
 
38
  * 6.1.5 - Major Exclude Bug fix.
39
  * 6.1.3 - Exclusion Bug Fix.
40
  * 6.1.2 - Localization bug fixes.
2
  Contributors: dancameron, sproutventure, ericlebail
3
  Donate link: http://www.amazon.com/wishlist/3EM84J7FVHE6S
4
  Tags: search, tag search, category search, category exclusion, comment search, page search, admin, seo
5
+ Requires at least: 2.3
6
  Tested up to: 2.8
7
+ Stable tag: 6.1.7
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
25
  * Exclude Posts from search
26
  * Exclude Categories from search
27
 
28
+ * 6.1.7 - Major Posts Exclude and Category Exclude Bug fix.
29
+ * 6.1.6 - Sym link fix.
30
  * 6.1.5 - Major Exclude Bug fix.
31
  * 6.1.4 - New Translations (IT)
32
  * 6.1.3 - Exclusion Bug Fix.
37
 
38
  == Update Log ==
39
 
40
+ * 6.1.7 - Major Posts Exclude and Category Exclude Bug fix.
41
+ * 6.1.6 - Sym link fix.
42
  * 6.1.5 - Major Exclude Bug fix.
43
  * 6.1.3 - Exclusion Bug Fix.
44
  * 6.1.2 - Localization bug fixes.
search-everything.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: https://redmine.sproutventure.com/projects/show/search-everything
5
  Description: Adds search functionality without modifying template pages: Activate, Configure and Search. Options Include: search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
- Version: 6.1.5
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
@@ -15,8 +15,16 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
15
  */
16
 
17
  if ( !defined('WP_CONTENT_DIR') )
18
- define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
19
- define('SE_ABSPATH', WP_CONTENT_DIR.'/plugins/' . dirname(plugin_basename(__FILE__)) . '/');
 
 
 
 
 
 
 
 
20
 
21
  $SE = new SearchEverything();
22
  //add filters based upon option settings
@@ -506,6 +514,7 @@ Class SearchEverything {
506
  // create the Posts exclusion query
507
  function se_build_exclude_posts()
508
  {
 
509
  $excludeQuery = '';
510
  if (!empty($wp_query->query_vars['s']))
511
  {
@@ -513,7 +522,7 @@ Class SearchEverything {
513
  if ($excludedPostList != '')
514
  {
515
  $excl_list = implode(',', explode(',',$excludedPostList));
516
- $excludeQuery = ' AND (wp_posts.ID NOT IN ( '.$excl_list.' ))';
517
  }
518
  $this->se_log("ex posts where: ".$excludeQuery);
519
  }
@@ -523,6 +532,7 @@ Class SearchEverything {
523
  // create the Categories exclusion query
524
  function se_build_exclude_categories()
525
  {
 
526
  $excludeQuery = '';
527
  if (!empty($wp_query->query_vars['s']))
528
  {
3
  Plugin Name: Search Everything
4
  Plugin URI: https://redmine.sproutventure.com/projects/show/search-everything
5
  Description: Adds search functionality without modifying template pages: Activate, Configure and Search. Options Include: search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
+ Version: 6.1.7
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
15
  */
16
 
17
  if ( !defined('WP_CONTENT_DIR') )
18
+ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
19
+
20
+ if (!defined('DIRECTORY_SEPARATOR'))
21
+ {
22
+ if (strpos(php_uname('s'), 'Win') !== false )
23
+ define('DIRECTORY_SEPARATOR', '\\');
24
+ else
25
+ define('DIRECTORY_SEPARATOR', '/');
26
+ }
27
+ define('SE_ABSPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
28
 
29
  $SE = new SearchEverything();
30
  //add filters based upon option settings
514
  // create the Posts exclusion query
515
  function se_build_exclude_posts()
516
  {
517
+ global $wp_query;
518
  $excludeQuery = '';
519
  if (!empty($wp_query->query_vars['s']))
520
  {
522
  if ($excludedPostList != '')
523
  {
524
  $excl_list = implode(',', explode(',',$excludedPostList));
525
+ $excludeQuery = ' AND (ID NOT IN ( '.$excl_list.' ))';
526
  }
527
  $this->se_log("ex posts where: ".$excludeQuery);
528
  }
532
  // create the Categories exclusion query
533
  function se_build_exclude_categories()
534
  {
535
+ global $wp_query, $wpdb;
536
  $excludeQuery = '';
537
  if (!empty($wp_query->query_vars['s']))
538
  {
views/options.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Class se_admin {
4
 
5
- var $version = '6.1.5';
6
 
7
  function se_admin() {
8
 
2
 
3
  Class se_admin {
4
 
5
+ var $version = '6.1.7';
6
 
7
  function se_admin() {
8