From: Laury GvR Date: Thu, 13 Apr 2017 13:49:28 +0000 (-0400) Subject: the front-search-query filter no longer produces errors X-Git-Tag: v1.0.0^2~23 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=cb202df150c7a5e75b734b87a4d0a1d8086cbdde;p=WP-Plugins%2Fglm-member-db-fields.git 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. --- 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 *