Make WordPress Core

Ticket #28631: 28631-2.diff

File 28631-2.diff, 508 bytes (added by mordauk, 10 years ago)
  • src/wp-includes/user.php

     
    598598                $this->query_orderby = "ORDER BY $orderby $order";
    599599
    600600                // limit
    601                 if ( isset( $qv['number'] ) && $qv['number'] ) {
     601                if ( isset( $qv['number'] ) && $qv['number'] > 0 ) {
    602602                        if ( $qv['offset'] )
    603603                                $this->query_limit = $wpdb->prepare("LIMIT %d, %d", $qv['offset'], $qv['number']);
    604604                        else