Make WordPress Core


Ignore:
Timestamp:
03/22/2022 02:54:45 PM (4 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-user-query.php

    r52973 r52977  
    771771
    772772        if ( null === $this->results ) {
    773             $this->request = implode(
    774                 ' ',
    775                 array(
    776                     "SELECT {$this->query_fields}",
    777                     $this->query_from,
    778                     $this->query_where,
    779                     $this->query_orderby,
    780                     $this->query_limit,
    781                 )
    782             );
     773            $this->request = "
     774                SELECT {$this->query_fields}
     775                {$this->query_from}
     776                {$this->query_where}
     777                {$this->query_orderby}
     778                {$this->query_limit}
     779            ";
    783780
    784781            if ( is_array( $qv['fields'] ) || 'all' === $qv['fields'] ) {
Note: See TracChangeset for help on using the changeset viewer.