projects
/
WP-Plugins
/
glm-member-db-fields.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e529cc3
)
the front-search-query filter no longer produces errors
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 13 Apr 2017 13:49:28 +0000
(09:49 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 13 Apr 2017 13:49:28 +0000
(09:49 -0400)
The glm-member-db-front-search-query filter was being given a string
which was then used as an array. It's now changed to no longer have
a parameter, and instead declares queryParts as an empty array.
setup/frontHooks.php
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
0b950bf
..
308ac26
100644
(file)
--- a/
setup/frontHooks.php
+++ b/
setup/frontHooks.php
@@
-42,7
+42,8
@@
add_filter('glm-member-db-front-members-list-info', function($content, $id) {
2
);
-add_filter('glm-member-db-front-search-query', function($queryParts) {
+add_filter('glm-member-db-front-search-query', function() {
+ $queryParts = array();
// Get all custom fields
$customFields = $this->wpdb->get_results(
"SELECT *