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. Built from https://develop.svn.wordpress.org/trunk@52973 git-svn-id: http://core.svn.wordpress.org/trunk@52562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -683,7 +683,17 @@ class WP_Site_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 );
|
||||
|
||||
Reference in New Issue
Block a user