Fixed bug causing large amounts of data to not return
Showing
1 changed file
with
3 additions
and
11 deletions
| ... | @@ -84,6 +84,8 @@ class UserSearch implements ArrayAccess, Iterator, Countable { | ... | @@ -84,6 +84,8 @@ class UserSearch implements ArrayAccess, Iterator, Countable { |
| 84 | $uam_clause = " AND `uam`.`object_type` = 'user' AND `uam`.`group_id` IN (" . implode(',', $in_groups) . ") "; | 84 | $uam_clause = " AND `uam`.`object_type` = 'user' AND `uam`.`group_id` IN (" . implode(',', $in_groups) . ") "; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | mysql_query("SET SESSION group_concat_max_len = 40960", $wpdb->dbh); | ||
| 88 | |||
| 87 | $query = " | 89 | $query = " |
| 88 | SELECT SQL_CALC_FOUND_ROWS | 90 | SELECT SQL_CALC_FOUND_ROWS |
| 89 | `user_id` | 91 | `user_id` |
| ... | @@ -112,17 +114,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable { | ... | @@ -112,17 +114,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable { |
| 112 | /* | 114 | /* |
| 113 | ?> | 115 | ?> |
| 114 | <textarea style="width: 95%; height: 35em; font-size: 11px;" autofocus="autofocus"> | 116 | <textarea style="width: 95%; height: 35em; font-size: 11px;" autofocus="autofocus"> |
| 115 | <?php | 117 | <?php echo trim($query); ?>; |
| 116 | $me = new User(1); | ||
| 117 | echo serialize($me) . "\n"; | ||
| 118 | echo serialize(Array('hello' => 'world')); | ||
| 119 | ?> | ||
| 120 | |||
| 121 | <?php echo serialize(new User(1)); ?> | ||
| 122 | |||
| 123 | <?php echo serialize(new User(4)); ?> | ||
| 124 | |||
| 125 | <?php echo trim($query); ?>; | ||
| 126 | </textarea> | 118 | </textarea> |
| 127 | <?php | 119 | <?php |
| 128 | /**/ | 120 | /**/ | ... | ... |
-
Please register or sign in to post a comment