WordPress.org

Make WordPress Core

Ticket #28631: 28631.diff

File 28631.diff, 496 bytes (added by nofearinc, 6 years ago)
  • wp-includes/user.php

     
    585585                $this->query_orderby = "ORDER BY $orderby $order";
    586586
    587587                // limit
    588                 if ( isset( $qv['number'] ) && $qv['number'] ) {
     588                if ( isset( $qv['number'] ) && $qv['number'] > 0 ) {
    589589                        if ( $qv['offset'] )
    590590                                $this->query_limit = $wpdb->prepare("LIMIT %d, %d", $qv['offset'], $qv['number']);
    591591                        else