Search Everything - Version 4.7

Version Description

Download this release

Release Info

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

Code changes from version 4.6.2 to 4.7

Files changed (4) hide show
  1. SE-Admin.php +2 -1
  2. readme-JAPANESE.txt +3 -3
  3. readme.txt +2 -2
  4. search_everything.php +14 -11
SE-Admin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Class SearchEverythingAdmin {
4
 
5
- var $version = '4.6.2';
6
 
7
  function SearchEverythingAdmin() {
8
 
@@ -153,6 +153,7 @@ Class SearchEverythingAdmin {
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://chrismeller.com/">Chris Meller</a></li>
157
  <li>jdleung</li>
158
  <li>Alakhnor</li>
2
 
3
  Class SearchEverythingAdmin {
4
 
5
+ var $version = '4.7';
6
 
7
  function SearchEverythingAdmin() {
8
 
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>
159
  <li>Alakhnor</li>
readme-JAPANESE.txt CHANGED
@@ -1,8 +1,8 @@
1
- Search Everything (SE) v4.2.2 - 検索対象にするコンテンツを追加するプラグイン
2
  GNU General Public License
3
- Developed by Daniel Cameron dancameron@gmail.com / http://dancameron.org/
4
  Translation by Naoko McCracken http://detlog.org/
5
- 対応テスト済みのWordPressバージョン: 2.1〜2.3(日本語タグ未対応)
6
 
7
  このプラグインの翻訳版配布ページ: http://wppluginsj.sourceforge.jp/i18n-ja_jp/search-everything/
8
  このプラグインに関する追加情報(英語): http://wordpress.org/extend/plugins/search-everything/
1
+ Search Everything (SE) v4.7 - 検索対象にするコンテンツを追加するプラグイン
2
  GNU General Public License
3
+ Developed by Daniel Cameron http://dancameron.org/
4
  Translation by Naoko McCracken http://detlog.org/
5
+ 対応テスト済みのWordPressバージョン: 2.1〜2.6(日本語タグ未対応)
6
 
7
  このプラグインの翻訳版配布ページ: http://wppluginsj.sourceforge.jp/i18n-ja_jp/search-everything/
8
  このプラグインに関する追加情報(英語): http://wordpress.org/extend/plugins/search-everything/
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.5.1
7
- Stable tag: 4.6.2
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
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
7
+ Stable tag: 4.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
 
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.6.2
7
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
@@ -13,7 +13,10 @@ This program is free software; you can redistribute it and/or modify it under th
13
 
14
  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15
  */
16
- define('SE_ABSPATH', ABSPATH . 'wp-content/plugins/' . dirname(plugin_basename(__FILE__)).'/');
 
 
 
17
 
18
  $SE = new SearchEverything();
19
  //add filters based upon option settings
@@ -32,7 +35,7 @@ Class SearchEverything {
32
  $this->options = get_option('SE4_options');
33
 
34
  if (is_admin()) {
35
- include ( SE_ABSPATH . '/SE-Admin.php' );
36
  $SEAdmin = new SearchEverythingAdmin();
37
  }
38
 
@@ -112,15 +115,15 @@ Class SearchEverything {
112
 
113
  //Duplicate fix provided by Tiago.Pocinho
114
  function SE4_distinct($query){
115
- global $wp_query;
116
- if (!empty($wp_query->query_vars['s'])) {
117
- if (strstr($where, 'DISTINCT')) {}
118
- else {
119
- $query = str_replace('SELECT', 'SELECT DISTINCT', $query);
120
- }
121
- }
122
- return $query;
123
  }
 
 
124
 
125
  function SE4_exclude_posts($where) {
126
  global $wp_query;
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
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
13
 
14
  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
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
35
  $this->options = get_option('SE4_options');
36
 
37
  if (is_admin()) {
38
+ include ( SE_ABSPATH . 'SE-Admin.php' );
39
  $SEAdmin = new SearchEverythingAdmin();
40
  }
41
 
115
 
116
  //Duplicate fix provided by Tiago.Pocinho
117
  function SE4_distinct($query){
118
+ global $wp_query;
119
+ if (!empty($wp_query->query_vars['s'])) {
120
+ if (strstr($where, 'DISTINCT')) {
121
+ } else {
122
+ $query = str_replace('SELECT', 'SELECT DISTINCT', $query);
123
+ }
 
 
124
  }
125
+ return $query;
126
+ }
127
 
128
  function SE4_exclude_posts($where) {
129
  global $wp_query;