a5ad39d9 by Marty Penner

Promoting r272 to live.

1 parent 75ff9f3e
...@@ -29,7 +29,7 @@ const PASS_MAX_LEN = 15; // Maximum length of password ...@@ -29,7 +29,7 @@ const PASS_MAX_LEN = 15; // Maximum length of password
29 if (empty($wpdb->signups)) { 29 if (empty($wpdb->signups)) {
30 $wpdb->signups = $wpdb->prefix . 'signups'; 30 $wpdb->signups = $wpdb->prefix . 'signups';
31 } 31 }
32 //die(var_dump(wp_hash_password('a '))); 32
33 Vars::$options = new Tools\WP_Option(OPTION_NAME); 33 Vars::$options = new Tools\WP_Option(OPTION_NAME);
34 34
35 if (is_admin()) { 35 if (is_admin()) {
......
...@@ -85,7 +85,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable { ...@@ -85,7 +85,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable {
85 } 85 }
86 86
87 // Users table 87 // Users table
88 if (!is_null($search_users_table)) { 88 if (!is_null($search_users_table) && empty($field_match)) {
89 if (!empty($having_clause)) { 89 if (!empty($having_clause)) {
90 $having_clause .= "\n OR `user_id` IN (SELECT `ID` FROM `wp_users` WHERE (`user_login` LIKE '%{$search}%' OR `user_nicename` LIKE '%{$search}%'))"; 90 $having_clause .= "\n OR `user_id` IN (SELECT `ID` FROM `wp_users` WHERE (`user_login` LIKE '%{$search}%' OR `user_nicename` LIKE '%{$search}%'))";
91 } 91 }
......