Make WordPress Core


Ignore:
Timestamp:
03/22/2022 02:54:45 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use multi-line strings for the $this->request property in wp-includes/class-wp-*-query.php.

This further improves the readability by replacing implode() calls with string interpolation.

Follow-up to [52973].

Props jrf.
See #54728.

File:
1 edited

Legend:

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

    r52974 r52977  
    723723        $this->sql_clauses['limits']  = $limits;
    724724
    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         );
     725        $this->request = "
     726            {$this->sql_clauses['select']}
     727            {$this->sql_clauses['from']}
     728            {$where}
     729            {$this->sql_clauses['orderby']}
     730            {$this->sql_clauses['limits']}
     731        ";
    735732
    736733        $this->terms = null;
Note: See TracChangeset for help on using the changeset viewer.