Search Everything - Version 8.1.9

Version Description

  • Fixed a search issue that caused all results to be returned regardless of the options.
Download this release

Release Info

Developer sovrn
Plugin Icon wp plugin Search Everything
Version 8.1.9
Comparing to
See all releases

Code changes from version 8.1.8 to 8.1.9

Files changed (3) hide show
  1. config.php +6 -0
  2. readme.txt +4 -1
  3. search-everything.php +7 -6
config.php CHANGED
@@ -109,6 +109,12 @@ function se_upgrade() {
109
  }
110
  }
111
 
 
 
 
 
 
 
112
  function se_migrate_8_1_7() {
113
  $se_meta = get_option('se_meta', false);
114
  $se_meta['version'] = '8.1.8';
109
  }
110
  }
111
 
112
+ function se_migrate_8_1_8() {
113
+ $se_meta = get_option('se_meta', false);
114
+ $se_meta['version'] = '8.1.9';
115
+ update_option('se_meta', $se_meta);
116
+ }
117
+
118
  function se_migrate_8_1_7() {
119
  $se_meta = get_option('se_meta', false);
120
  $se_meta['version'] = '8.1.8';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sovrn, zemanta
3
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter, research
4
  Requires at least: 3.6
5
  Tested up to: 4.7.3
6
- Stable tag: 8.1.8
7
 
8
  Search Everything increases WordPress' default search functionality in three easy steps.
9
 
@@ -115,6 +115,9 @@ Before using the plugin please read the full version of [Zemanta Terms of Servic
115
 
116
 
117
  == Changelog ==
 
 
 
118
  = 8.1.8 =
119
  * Fixed a migration/update issue
120
 
3
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter, research
4
  Requires at least: 3.6
5
  Tested up to: 4.7.3
6
+ Stable tag: 8.1.9
7
 
8
  Search Everything increases WordPress' default search functionality in three easy steps.
9
 
115
 
116
 
117
  == Changelog ==
118
+ = 8.1.9 =
119
+ * Fixed a search issue that caused all results to be returned regardless of the options.
120
+
121
  = 8.1.8 =
122
  * Fixed a migration/update issue
123
 
search-everything.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: http://wordpress.org/plugins/search-everything/
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: 8.1.8
7
  Author: Sovrn, zemanta
8
  Author URI: http://www.sovrn.com
9
  GitHub Plugin URI: https://github.com/afragen/github-updater
10
  GitHub Branch: master
11
  */
12
 
13
- define('SE_VERSION', '8.1.8');
14
 
15
  if (!defined('SE_PLUGIN_FILE'))
16
  define('SE_PLUGIN_FILE', plugin_basename(__FILE__));
@@ -276,8 +276,8 @@ class SearchEverything {
276
  }
277
 
278
  if ( $searchQuery != '' ) {
279
- // lets use _OUR_ query instead of WP's, as we have posts already included in our query as well(assuming it's not empty which we check for)
280
- $where = " AND " . $searchQuery . " ";
281
  }
282
 
283
  if ( $this->options['se_exclude_posts_list'] != '' ) {
@@ -924,8 +924,9 @@ function se_post_publish_ping($post_id) {
924
  'deployment' => 'search-everything',
925
  'format' => 'json'
926
  ));
927
- if (!is_wp_error($zemanta_response)) {
928
- $status = json_decode($zemanta_response['body'])->status;
 
929
  }
930
  }
931
  return $status;
3
  Plugin Name: Search Everything
4
  Plugin URI: http://wordpress.org/plugins/search-everything/
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: 8.1.9
7
  Author: Sovrn, zemanta
8
  Author URI: http://www.sovrn.com
9
  GitHub Plugin URI: https://github.com/afragen/github-updater
10
  GitHub Branch: master
11
  */
12
 
13
+ define('SE_VERSION', '8.1.9');
14
 
15
  if (!defined('SE_PLUGIN_FILE'))
16
  define('SE_PLUGIN_FILE', plugin_basename(__FILE__));
276
  }
277
 
278
  if ( $searchQuery != '' ) {
279
+ // lets use _OUR_ query instead of WP's, as we have posts already included in our query as well(assuming it's not empty which we check for)
280
+ $where = " AND ((" . $searchQuery . ")) ";
281
  }
282
 
283
  if ( $this->options['se_exclude_posts_list'] != '' ) {
924
  'deployment' => 'search-everything',
925
  'format' => 'json'
926
  ));
927
+ $response = json_decode($zemanta_response['body']);
928
+ if (isset($response->status) && !is_wp_error($zemanta_response)) {
929
+ $status = $response->status;
930
  }
931
  }
932
  return $status;