* Plugin Name: GLM Members Database
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 2.10.26
+ * Version: 2.10.27
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabase
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.26
+ * @version 2.10.27
*/
$GLOBALS['glmAssociateMemTracker'] = memory_get_usage();
*
*/
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.26');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.27');
define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.34');
// Check if plugin version is not current in WordPress option and if needed updated it
// 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." (
- (
- SELECT true
- FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."members
- WHERE id = T.member
- AND name LIKE '%$textSearch%'
- )
- )";
- } else {
- $where .= $whereSep." (
- (
- SELECT true
- FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."members
- WHERE id = T.member
- AND name LIKE '%$textSearch%'
- ) OR
- T.descr LIKE '%$textSearch%' OR
- T.short_descr LIKE '%$textSearch%' OR
- T.addr1 LIKE '%$textSearch%' OR
- T.addr2 LIKE '%$textSearch%'
- )";
- }
+ $where .= $whereSep." (
+ (
+ SELECT true
+ FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."members
+ WHERE id = T.member
+ AND name LIKE '%$textSearch%'
+ ) OR
+ T.descr LIKE '%$textSearch%' OR
+ T.short_descr LIKE '%$textSearch%' OR
+ T.addr1 LIKE '%$textSearch%' OR
+ T.addr2 LIKE '%$textSearch%'
+ )";
$whereSep = ' AND ';
$textSearch = stripslashes($textSearch);
}