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

    r52653 r52973  
    771771
    772772        if ( null === $this->results ) {
    773             $this->request = "SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit";
     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            );
    774783
    775784            if ( is_array( $qv['fields'] ) || 'all' === $qv['fields'] ) {
Note: See TracChangeset for help on using the changeset viewer.