mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Users: Restore changes from [35114] accidentally reverted in [35135].
See #28631. git-svn-id: https://develop.svn.wordpress.org/trunk@35138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -422,7 +422,7 @@ class WP_User_Query {
|
||||
$this->query_orderby = 'ORDER BY ' . implode( ', ', $orderby_array );
|
||||
|
||||
// limit
|
||||
if ( isset( $qv['number'] ) && $qv['number'] ) {
|
||||
if ( isset( $qv['number'] ) && $qv['number'] > 0 ) {
|
||||
if ( $qv['offset'] ) {
|
||||
$this->query_limit = $wpdb->prepare("LIMIT %d, %d", $qv['offset'], $qv['number']);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user