From cb202df150c7a5e75b734b87a4d0a1d8086cbdde Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 13 Apr 2017 09:49:28 -0400 Subject: [PATCH] the front-search-query filter no longer produces errors 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 0b950bf..308ac26 100644 --- 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 * -- 2.17.1