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:
Sergey Biryukov
2022-03-21 12:03:29 +00:00
parent 9f2a8562f8
commit fbf8cb73ec
6 changed files with 76 additions and 7 deletions

View File

@@ -480,7 +480,17 @@ class WP_Network_Query {
$this->sql_clauses['orderby'] = $orderby;
$this->sql_clauses['limits'] = $limits;
$this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
$this->request = implode(
' ',
array(
$this->sql_clauses['select'],
$this->sql_clauses['from'],
$where,
$this->sql_clauses['groupby'],
$this->sql_clauses['orderby'],
$this->sql_clauses['limits'],
)
);
if ( $this->query_vars['count'] ) {
return (int) $wpdb->get_var( $this->request );