Make WordPress Core


Ignore:
Timestamp:
03/21/2022 12:03:29 PM (2 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-site-query.php

    r52226 r52973  
    684684        $this->sql_clauses['limits']  = $limits;
    685685
    686         $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
     686        $this->request = implode(
     687            ' ',
     688            array(
     689                $this->sql_clauses['select'],
     690                $this->sql_clauses['from'],
     691                $where,
     692                $this->sql_clauses['groupby'],
     693                $this->sql_clauses['orderby'],
     694                $this->sql_clauses['limits'],
     695            )
     696        );
    687697
    688698        if ( $this->query_vars['count'] ) {
Note: See TracChangeset for help on using the changeset viewer.