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-comment-query.php

    r52707 r52973  
    961961        $this->sql_clauses['limits']  = $limits;
    962962
    963         $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
     963        $this->request = implode(
     964            ' ',
     965            array(
     966                $this->sql_clauses['select'],
     967                $this->sql_clauses['from'],
     968                $where,
     969                $this->sql_clauses['groupby'],
     970                $this->sql_clauses['orderby'],
     971                $this->sql_clauses['limits'],
     972            )
     973        );
    964974
    965975        if ( $this->query_vars['count'] ) {
Note: See TracChangeset for help on using the changeset viewer.