From: Steve Sutton Date: Tue, 20 Feb 2018 14:06:05 +0000 (-0500) Subject: If wordpress search then only search name X-Git-Tag: v2.10.23^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e61c7f3bfd64a491e5af58f771123c1c239d3ee8;p=WP-Plugins%2Fglm-member-db.git If wordpress search then only search name For use in wordpress search like wmta. --- diff --git a/models/front/members/list.php b/models/front/members/list.php index 38a6440e..2be9e9dc 100644 --- a/models/front/members/list.php +++ b/models/front/members/list.php @@ -274,6 +274,7 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo // Apply any provided text search to name, description, short description, and street address if (trim($actionData['request']['text-search']) != '') { $textSearch = addslashes(filter_var($actionData['request']['text-search'], FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES)); + // If there's Wordpress search then only search the member name field if ( isset( $_REQUEST['s'] ) ) { $where .= $whereSep." ( (