mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -770,7 +770,16 @@ class WP_User_Query {
|
||||
$this->results = apply_filters_ref_array( 'users_pre_query', array( null, &$this ) );
|
||||
|
||||
if ( null === $this->results ) {
|
||||
$this->request = "SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit";
|
||||
$this->request = implode(
|
||||
' ',
|
||||
array(
|
||||
"SELECT {$this->query_fields}",
|
||||
$this->query_from,
|
||||
$this->query_where,
|
||||
$this->query_orderby,
|
||||
$this->query_limit,
|
||||
)
|
||||
);
|
||||
|
||||
if ( is_array( $qv['fields'] ) || 'all' === $qv['fields'] ) {
|
||||
$this->results = $wpdb->get_results( $this->request );
|
||||
|
||||
Reference in New Issue
Block a user