From dc9298295097706dc8e561f7d7ee03b749bb6906 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Oct 2015 15:45:25 +0000 Subject: [PATCH] Users: Restore changes from [35114] accidentally reverted in [35135]. See #28631. Built from https://develop.svn.wordpress.org/trunk@35138 git-svn-id: http://core.svn.wordpress.org/trunk@35103 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-user-query.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-user-query.php b/wp-includes/class-wp-user-query.php index 59d0c99411..b0c8584b40 100644 --- a/wp-includes/class-wp-user-query.php +++ b/wp-includes/class-wp-user-query.php @@ -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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index ab212a5907..23ca138c05 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35137'; +$wp_version = '4.4-alpha-35138'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.