Make WordPress Core

Ticket #45582: 45582.2.diff

File 45582.2.diff, 644 bytes (added by spacedmonkey, 5 years ago)
  • src/wp-includes/class-wp-site-query.php

     
    420420
    421421                $number = absint( $this->query_vars['number'] );
    422422                $offset = absint( $this->query_vars['offset'] );
    423 
     423                $limits = '';
    424424                if ( ! empty( $number ) ) {
    425425                        if ( $offset ) {
    426426                                $limits = 'LIMIT ' . $offset . ',' . $number;
     
    570570                }
    571571
    572572                $join = '';
    573 
     573                $groupby = '';
    574574                if ( ! empty( $this->meta_query_clauses ) ) {
    575575                        $join .= $this->meta_query_clauses['join'];
    576576