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

    r52972 r52973  
    723723        $this->sql_clauses['limits']  = $limits;
    724724
    725         $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
     725        $this->request = implode(
     726            ' ',
     727            array(
     728                $this->sql_clauses['select'],
     729                $this->sql_clauses['from'],
     730                $where,
     731                $this->sql_clauses['orderby'],
     732                $this->sql_clauses['limits'],
     733            )
     734        );
    726735
    727736        $this->terms = null;
Note: See TracChangeset for help on using the changeset viewer.