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 }
......
...@@ -147,17 +147,17 @@ function add_settings_fields($class, $page = 'general', $section = 'default') { ...@@ -147,17 +147,17 @@ function add_settings_fields($class, $page = 'general', $section = 'default') {
147 } 147 }
148 148
149 function TzSuperPaginationBar($pages = null, $range = 2, $before = "", $after = "",$show_search = false, $show_advanced = false, $post_type="") { 149 function TzSuperPaginationBar($pages = null, $range = 2, $before = "", $after = "",$show_search = false, $show_advanced = false, $post_type="") {
150 150
151 $bar = '<div class="TzSuperPaginationBar">'; 151 $bar = '<div class="TzSuperPaginationBar">';
152 if ($show_search) { $bar .= '<div class="pagination-search"><form id="TzPaginationSearch"><input type="hidden" name="post_type" value="'.$post_type.'" /><input name="search_criteria" type="input" /></form></div>'; } 152 if ($show_search) { $bar .= '<div class="pagination-search"><form id="TzPaginationSearch"><input type="hidden" name="post_type" value="'.$post_type.'" /><input name="search_criteria" type="input" /></form></div>'; }
153 if ($show_advanced) { $bar .= '<div class="pagination-advanced"><a href="#" onclick="return false;">Advanced</a></div>'; } 153 if ($show_advanced) { $bar .= '<div class="pagination-advanced"><a href="#" onclick="return false;">Advanced</a></div>'; }
154 $bar .= '<div class="pagination-paging">'.pagination($pages,$range,$before,$after,false).'</div>'; 154 $bar .= '<div class="pagination-paging">'.pagination($pages,$range,$before,$after,false).'</div>';
155 $bar .= '<div style="clear:both;"></div>'; 155 $bar .= '<div style="clear:both;"></div>';
156 $bar .= '</div>'; 156 $bar .= '</div>';
157 157
158 return $bar; 158 return $bar;
159 } 159 }
160 160
161 function pagination($pages = null, $range = 2, $before = '', $after = '', $echo = true) { 161 function pagination($pages = null, $range = 2, $before = '', $after = '', $echo = true) {
162 162
163 $p = ""; 163 $p = "";
...@@ -172,7 +172,7 @@ function pagination($pages = null, $range = 2, $before = '', $after = '', $echo ...@@ -172,7 +172,7 @@ function pagination($pages = null, $range = 2, $before = '', $after = '', $echo
172 if (!$pages) { 172 if (!$pages) {
173 $pages = 1; 173 $pages = 1;
174 } 174 }
175 } 175 }
176 176
177 if (1 != $pages) { 177 if (1 != $pages) {
178 $p .= $before; 178 $p .= $before;
...@@ -186,15 +186,15 @@ function pagination($pages = null, $range = 2, $before = '', $after = '', $echo ...@@ -186,15 +186,15 @@ function pagination($pages = null, $range = 2, $before = '', $after = '', $echo
186 } 186 }
187 } 187 }
188 188
189 if ($paged < $pages && $showitems < $pages) $p .= "<a href='" . get_pagenum_link($paged + 1) . "'>&rsaquo;</a>"; 189 if ($paged < $pages && $showitems < $pages) $p .= "<a href='" . get_pagenum_link($paged + 1) . "'>&rsaquo;</a>";
190 if ($paged < $pages-1 && $paged+$range - 1 < $pages && $showitems < $pages) $p .= "<a href='" . get_pagenum_link($pages) . "'>&raquo;</a>"; 190 if ($paged < $pages-1 && $paged+$range - 1 < $pages && $showitems < $pages) $p .= "<a href='" . get_pagenum_link($pages) . "'>&raquo;</a>";
191 191
192 $p .= $after; 192 $p .= $after;
193 } 193 }
194 194
195 if ($echo) { echo $p; } else { return $p; } 195 if ($echo) { echo $p; } else { return $p; }
196 196
197 197
198 } 198 }
199 199
200 class Vars { 200 class Vars {
......