mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
- member directory, search fix;
This commit is contained in:
@@ -1197,7 +1197,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
|
||||
// Add OR instead AND to search in WP core fields user_email, user_login, user_display_name
|
||||
$search_where = $context->get_search_sql( $search, UM()->member_directory()->core_search_fields, 'both' );
|
||||
$search_where = preg_replace( '/ AND \((.*?)\)/im', " OR $1", $search_where );
|
||||
$search_where = preg_replace( '/ AND \((.*?)\)/im', " AND ( $1 )", $search_where );
|
||||
|
||||
$sql['where'] = $sql['where'] . $search_where;
|
||||
}
|
||||
|
||||
@@ -139,6 +139,10 @@ if ( ! class_exists( 'um\core\Plugin_Updater' ) ) {
|
||||
'key' => 'filesharing',
|
||||
'title' => 'File Sharing',
|
||||
),
|
||||
'um-user-location/um-user-location.php' => array(
|
||||
'key' => 'user-location',
|
||||
'title' => 'User Location',
|
||||
),
|
||||
);
|
||||
|
||||
$active_um_plugins = array();
|
||||
|
||||
Reference in New Issue
Block a user