- member directory, search fix;

This commit is contained in:
nikitasinelnikov
2019-09-06 11:53:04 +03:00
parent 43ebcbd27f
commit cea41f552e
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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;
}
+4
View File
@@ -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();