Fix user pagination. Props duck_. Fixes #15479
git-svn-id: http://svn.automattic.com/wordpress/trunk@16473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5b3719be8
commit
762eca08ca
|
@ -439,7 +439,7 @@ class WP_User_Query {
|
|||
// limit
|
||||
if ( $qv['number'] ) {
|
||||
if ( $qv['offset'] )
|
||||
$this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $qv['offset'], $qv['offset'] + $qv['number']);
|
||||
$this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $qv['offset'], $qv['number']);
|
||||
else
|
||||
$this->query_limit = $wpdb->prepare(" LIMIT %d", $qv['number']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue