Search Everything - Version 6.9.3.1

Version Description

Download this release

Release Info

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

Code changes from version 6.9.3 to 6.9.3.1

Files changed (4) hide show
  1. README.markdown +5 -0
  2. readme.txt +1 -1
  3. search-everything.php +10 -2
  4. views/options.php +5 -4
README.markdown CHANGED
@@ -32,6 +32,11 @@ Search Everything increases the ability of the default Wordpress Search, options
32
  * Exclude Categories from search
33
 
34
 
 
 
 
 
 
35
  Installation
36
  ============
37
 
32
  * Exclude Categories from search
33
 
34
 
35
+ Search Everything Plus
36
+ ============
37
+ Premium version coming soon, get notified on updates [here](http://wpsearchplugin.com/get-notified/ "Get updates").
38
+
39
+
40
  Installation
41
  ============
42
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/plugin-donations
4
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
5
  Requires at least: 3
6
  Tested up to: 3.3
7
- Stable tag: 6.9.3
8
 
9
  Increases Wordpress' default search functionality in three easy steps.
10
 
4
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
5
  Requires at least: 3
6
  Tested up to: 3.3
7
+ Stable tag: 6.9.3.1
8
 
9
  Increases Wordpress' default search functionality in three easy steps.
10
 
search-everything.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: https://github.com/sproutventure/search-everything-wordpress-plugin/
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, 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.9.3
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
@@ -134,6 +134,8 @@ Class SearchEverything {
134
 
135
  add_filter('posts_where', array(&$this, 'se_no_future'));
136
 
 
 
137
  // Highlight content
138
  if("Yes" == $this->options['se_use_highlight'])
139
  {
@@ -182,7 +184,7 @@ Class SearchEverything {
182
  {
183
  $searchQuery .= $this->se_build_search_tag();
184
  }
185
- if ("Yes" == $this->options['se_use_category_search'])
186
  {
187
  $searchQuery .= $this->se_build_search_categories();
188
  }
@@ -836,6 +838,12 @@ Class SearchEverything {
836
  }
837
  return $postcontent;
838
  }
 
 
 
 
 
 
839
  } // END
840
 
841
  ?>
3
  Plugin Name: Search Everything
4
  Plugin URI: https://github.com/sproutventure/search-everything-wordpress-plugin/
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, 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.9.3.1
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
134
 
135
  add_filter('posts_where', array(&$this, 'se_no_future'));
136
 
137
+ add_filter('posts_request', array(&$this, 'se_log_query'), 10, 2);
138
+
139
  // Highlight content
140
  if("Yes" == $this->options['se_use_highlight'])
141
  {
184
  {
185
  $searchQuery .= $this->se_build_search_tag();
186
  }
187
+ if ("Yes" == $this->options['se_use_category_search'] || 'Yes' == $this->options['se_use_tax_search'])
188
  {
189
  $searchQuery .= $this->se_build_search_categories();
190
  }
838
  }
839
  return $postcontent;
840
  }
841
+
842
+ function se_log_query($query, $wp_query){
843
+ if($wp_query->is_search)
844
+ $this->se_log($query);
845
+ return $query;
846
+ }// se_log_query
847
  } // END
848
 
849
  ?>
views/options.php CHANGED
@@ -47,8 +47,8 @@ Class se_admin {
47
  'se_use_cmt_authors' => (isset($_POST['search_cmt_authors']) && $_POST['search_cmt_authors'] == 'Yes') ? 'Yes' : 'No',
48
  'se_use_metadata_search' => (isset($_POST['search_metadata']) && $_POST['search_metadata'] == 'Yes') ? 'Yes' : 'No',
49
  'se_use_highlight' => (isset($_POST['search_highlight']) && $_POST['search_highlight'] == 'Yes') ? 'Yes' : 'No',
50
- 'se_highlight_color' => (isset($_POST['highlight_color']) && $_POST['highlight_color'] == 'Yes') ? 'Yes' : 'No',
51
- 'se_highlight_style' => (isset($_POST['highlight_style']) && $_POST['highlight_style'] == 'Yes') ? 'Yes' : 'No'
52
 
53
  );
54
 
@@ -65,6 +65,8 @@ Class se_admin {
65
  delete_option("se_options", $new_options);
66
  }
67
 
 
 
68
 
69
  $options = get_option('se_options');
70
 
@@ -403,5 +405,4 @@ Class se_admin {
403
  <?php
404
  }
405
 
406
- }
407
- ?>
47
  'se_use_cmt_authors' => (isset($_POST['search_cmt_authors']) && $_POST['search_cmt_authors'] == 'Yes') ? 'Yes' : 'No',
48
  'se_use_metadata_search' => (isset($_POST['search_metadata']) && $_POST['search_metadata'] == 'Yes') ? 'Yes' : 'No',
49
  'se_use_highlight' => (isset($_POST['search_highlight']) && $_POST['search_highlight'] == 'Yes') ? 'Yes' : 'No',
50
+ 'se_highlight_color' => (isset($_POST['highlight_color'])) ? $_POST['highlight_color'] : '',
51
+ 'se_highlight_style' => (isset($_POST['highlight_style'])) ? $_POST['highlight_style'] : ''
52
 
53
  );
54
 
65
  delete_option("se_options", $new_options);
66
  }
67
 
68
+ // Announce SE+
69
+ echo "<div class=\"updated fade\" id=\"seplusnotice\"><p>" . __('<strong>Search Everything Plus</strong> is being developed and it\'s going to be awesome! <a href="http://wpsearchplugin.com/get-notified/">Signup now</a> and get notified when it\'s available.', 'SearchEverything') . "</p></div>";
70
 
71
  $options = get_option('se_options');
72
 
405
  <?php
406
  }
407
 
408
+ }