Version Description
Download this release
Release Info
Developer | dancameron |
Plugin | Search Everything |
Version | 4.7.6 |
Comparing to | |
See all releases |
Code changes from version 4.7.5 to 4.7.6
- SE-Admin.php +1 -1
- readme.txt +3 -2
- search_everything.php +11 -10
SE-Admin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
Class SearchEverythingAdmin {
|
4 |
|
5 |
-
var $version = '4.7.
|
6 |
|
7 |
function SearchEverythingAdmin() {
|
8 |
|
2 |
|
3 |
Class SearchEverythingAdmin {
|
4 |
|
5 |
+
var $version = '4.7.6';
|
6 |
|
7 |
function SearchEverythingAdmin() {
|
8 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
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,7 +30,8 @@ Search Everything increases the ability of the default Wordpress Search, options
|
|
30 |
|
31 |
== Update Log ==
|
32 |
|
33 |
-
|
|
|
34 |
*4.7.1 - Swedish, Spanish and Dutch
|
35 |
*4.7 - Wordpress 2.6 updates and more
|
36 |
*4.6.2 - REQUIRED UPDATE from 4.6 release. Admin panel bug fixes (proper wp_version checks, disabled draft support for 2.5 and fixed the options from not updating); Russian and Italian language suuport.
|
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 |
|
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
|
36 |
*4.7 - Wordpress 2.6 updates and more
|
37 |
*4.6.2 - REQUIRED UPDATE from 4.6 release. Admin panel bug fixes (proper wp_version checks, disabled draft support for 2.5 and fixed the options from not updating); Russian and Italian language suuport.
|
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.
|
7 |
Author: Dan Cameron
|
8 |
Author URI: http://dancameron.org/
|
9 |
*/
|
@@ -96,14 +96,15 @@ Class SearchEverything {
|
|
96 |
}
|
97 |
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
103 |
//Duplicate fix provided by Tiago.Pocinho
|
104 |
add_filter('posts_request', array(&$this, 'SE4_distinct'));
|
105 |
}
|
106 |
-
|
107 |
// Exclude post revisions
|
108 |
function SE4_no_revisions($where) {
|
109 |
global $wp_query;
|
@@ -112,7 +113,7 @@ Class SearchEverything {
|
|
112 |
}
|
113 |
return $where;
|
114 |
}
|
115 |
-
|
116 |
// Logs search into a file
|
117 |
function SE4_log($msg) {
|
118 |
|
@@ -236,9 +237,9 @@ Class SearchEverything {
|
|
236 |
global $wp_query, $wpdb;
|
237 |
if (!empty($wp_query->query_vars['s'])) {
|
238 |
if ($this->wp_ver23)
|
239 |
-
$where .= " OR (m.meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%')
|
240 |
else
|
241 |
-
$where .= " OR
|
242 |
}
|
243 |
|
244 |
$this->SE4_log("metadata where: ".$where);
|
@@ -265,7 +266,7 @@ Class SearchEverything {
|
|
265 |
global $wp_query, $wpdb;
|
266 |
|
267 |
if ( ! empty($wp_query->query_vars['s']) ) {
|
268 |
-
$where .= " OR ( tter.slug LIKE '%" . sanitize_title_with_dashes( $wp_query->query_vars['s'] ) . "%')
|
269 |
}
|
270 |
|
271 |
$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.6.2
|
7 |
Author: Dan Cameron
|
8 |
Author URI: http://dancameron.org/
|
9 |
*/
|
96 |
}
|
97 |
|
98 |
|
99 |
+
// Add registration of bo_revisions hook handler
|
100 |
+
// right before the following line already existant
|
101 |
+
add_filter('posts_where', array(&$this, 'SE4_no_revisions'));
|
102 |
+
|
103 |
+
|
104 |
//Duplicate fix provided by Tiago.Pocinho
|
105 |
add_filter('posts_request', array(&$this, 'SE4_distinct'));
|
106 |
}
|
107 |
+
|
108 |
// Exclude post revisions
|
109 |
function SE4_no_revisions($where) {
|
110 |
global $wp_query;
|
113 |
}
|
114 |
return $where;
|
115 |
}
|
116 |
+
|
117 |
// Logs search into a file
|
118 |
function SE4_log($msg) {
|
119 |
|
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);
|
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);
|