WordPress.org

Make WordPress Core

Ticket #37254: class-wp-term-query.diff

File class-wp-term-query.diff, 942 bytes (added by birgire, 5 years ago)
  • src/wp-includes/class-wp-term-query.php

     
    621621                $this->sql_clauses['orderby'] = $orderby ? "ORDER BY $orderby $order" : '';
    622622                $this->sql_clauses['limits']  = $limits;
    623623
    624                 $this->request = $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
     624                $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
    625625
    626626                // $args can be anything. Only use the args defined in defaults to compute the key.
    627627                $key = md5( serialize( wp_array_slice_assoc( $args, array_keys( $this->query_var_defaults ) ) ) . serialize( $taxonomies ) . $this->request );