Search Everything - Version 4.7.7

Version Description

Download this release

Release Info

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

Code changes from version 4.7.6 to 4.7.7

Files changed (3) hide show
  1. SE-Admin.php +2 -2
  2. readme.txt +3 -2
  3. search_everything.php +10 -7
SE-Admin.php CHANGED
@@ -150,9 +150,9 @@ Class SearchEverythingAdmin {
150
  <table class="form-table">
151
  <tr valign="top">
152
  <td colspan="4" bgcolor="#DDD">
153
- As of 2.5 I'm taking a hiatus from SE development; however I'm still committing feature updates and bug fixes from the community.<br/>
154
- You should not fret, the development since Version One has primarily come from the WordPress community and as a Search Everything user myself, I&#8217;m grateful for their dedicated and continued support:
155
  <ul class="SE_lists">
 
156
  <li><a href="http://striderweb.com/">Stephen Rider</a></li>
157
  <li><a href="http://chrismeller.com/">Chris Meller</a></li>
158
  <li>jdleung</li>
150
  <table class="form-table">
151
  <tr valign="top">
152
  <td colspan="4" bgcolor="#DDD">
153
+ The development since Version One has primarily come from the WordPress community and as a Search Everything user myself, I&#8217;m grateful for their dedicated and continued support:
 
154
  <ul class="SE_lists">
155
+ <li><a href="http://codium.co.nz">Matias Gertel</a></li>
156
  <li><a href="http://striderweb.com/">Stephen Rider</a></li>
157
  <li><a href="http://chrismeller.com/">Chris Meller</a></li>
158
  <li>jdleung</li>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dancameron
3
  Donate link: http://www.amazon.com/gp/registry/wishlist/3EM84J7FVHE6S/ref=wl_web/
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.6.1
7
- Stable tag: 4.7.6
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
@@ -30,6 +30,7 @@ Search Everything increases the ability of the default Wordpress Search, options
30
 
31
  == Update Log ==
32
 
 
33
  *4.7.6.2 - Bug fix, some people returning no results. Matching release number with WP version.
34
  *4.7.5 - Post Revision Update for Wordpress 2.6 (necessary update for 2.6 users), removed future posts from results
35
  *4.7.1 - Swedish, Spanish and Dutch
3
  Donate link: http://www.amazon.com/gp/registry/wishlist/3EM84J7FVHE6S/ref=wl_web/
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.6.3
7
+ Stable tag: 4.7.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
 
30
 
31
  == Update Log ==
32
 
33
+ *4.7.7 - New conditions to fix plugin from breaking with certain option selections. props Matias Gertel
34
  *4.7.6.2 - Bug fix, some people returning no results. Matching release number with WP version.
35
  *4.7.5 - Post Revision Update for Wordpress 2.6 (necessary update for 2.6 users), removed future posts from results
36
  *4.7.1 - Swedish, Spanish and Dutch
search_everything.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: http://dancameron.org/wordpress/
5
  Description: Adds search functionality with little setup. Including options to 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: 4.7.6.2
7
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
@@ -223,7 +223,8 @@ Class SearchEverything {
223
  }
224
 
225
  if ($this->wp_ver23) {
226
- $where .= " OR ( c.comment_post_ID = ".$wpdb->posts . ".ID " . $comment_approved . " AND c.comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
 
227
  }
228
  }
229
 
@@ -237,11 +238,11 @@ Class SearchEverything {
237
  global $wp_query, $wpdb;
238
  if (!empty($wp_query->query_vars['s'])) {
239
  if ($this->wp_ver23)
240
- $where .= " OR (m.meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
241
  else
242
- $where .= " OR meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
243
  }
244
-
245
  $this->SE4_log("metadata where: ".$where);
246
 
247
  return $where;
@@ -252,7 +253,8 @@ Class SearchEverything {
252
  global $wp_query, $wpdb;
253
  if (!empty($wp_query->query_vars['s'])) {
254
  //$where .= " OR ( tter.slug LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
255
- $where .= " OR ( tter.name LIKE '%" . str_replace(' ', '-',$wpdb->escape($wp_query->query_vars['s'])) . "%') ";
 
256
  }
257
 
258
  $this->SE4_log("tags where: ".$where);
@@ -266,7 +268,8 @@ Class SearchEverything {
266
  global $wp_query, $wpdb;
267
 
268
  if ( ! empty($wp_query->query_vars['s']) ) {
269
- $where .= " OR ( tter.slug LIKE '%" . sanitize_title_with_dashes( $wp_query->query_vars['s'] ) . "%') ";
 
270
  }
271
 
272
  $this->SE4_log("categories where: ".$where);
3
  Plugin Name: Search Everything
4
  Plugin URI: http://dancameron.org/wordpress/
5
  Description: Adds search functionality with little setup. Including options to 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: 4.7.7
7
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
223
  }
224
 
225
  if ($this->wp_ver23) {
226
+ $or = " OR ( c.comment_post_ID = ".$wpdb->posts . ".ID " . $comment_approved . " AND c.comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
227
+ $where = preg_replace("/\bor\b/i",$or." OR",$where,1);
228
  }
229
  }
230
 
238
  global $wp_query, $wpdb;
239
  if (!empty($wp_query->query_vars['s'])) {
240
  if ($this->wp_ver23)
241
+ $or = " OR (m.meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
242
  else
243
+ $or = " OR meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
244
  }
245
+ $where = preg_replace("/\bor\b/i",$or." OR",$where,1);
246
  $this->SE4_log("metadata where: ".$where);
247
 
248
  return $where;
253
  global $wp_query, $wpdb;
254
  if (!empty($wp_query->query_vars['s'])) {
255
  //$where .= " OR ( tter.slug LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
256
+ $or = " OR ( tter.name LIKE '%" . str_replace(' ', '-',$wpdb->escape($wp_query->query_vars['s'])) . "%') ";
257
+ $where = preg_replace("/\bor\b/i",$or." OR",$where,1);
258
  }
259
 
260
  $this->SE4_log("tags where: ".$where);
268
  global $wp_query, $wpdb;
269
 
270
  if ( ! empty($wp_query->query_vars['s']) ) {
271
+ $or = " OR ( tter.slug LIKE '%" . sanitize_title_with_dashes( $wp_query->query_vars['s'] ) . "%') ";
272
+ $where = preg_replace("/\bor\b/i",$or." OR",$where,1);
273
  }
274
 
275
  $this->SE4_log("categories where: ".$where);