Make WordPress Core


Ignore:
Timestamp:
03/21/2022 12:03:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Wrap the $this->request property in wp-includes/class-wp-*-query.php.

This aims to improve readability by fitting the values on a single screen to avoid horizontal scrolling.

See #54728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-network-query.php

    r51518 r52973  
    481481        $this->sql_clauses['limits']  = $limits;
    482482
    483         $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
     483        $this->request = implode(
     484            ' ',
     485            array(
     486                $this->sql_clauses['select'],
     487                $this->sql_clauses['from'],
     488                $where,
     489                $this->sql_clauses['groupby'],
     490                $this->sql_clauses['orderby'],
     491                $this->sql_clauses['limits'],
     492            )
     493        );
    484494
    485495        if ( $this->query_vars['count'] ) {
Note: See TracChangeset for help on using the changeset viewer.