diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/class-wp-term-query.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index 1fa73d4..25baaa8 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -241,7 +241,7 @@ class WP_Term_Query { * * @since 4.6.0 * - * @param string|array $query WP_Term_Query arguments. See WP_Term_Query::__construct() + * @param string|array $query WP_Term_Query arguments. See WP_Term_Query::__construct() for accepted arguments. */ public function parse_query( $query = '' ) { if ( empty( $query ) ) { @@ -752,13 +752,13 @@ class WP_Term_Query { $this->sql_clauses['orderby'] = $orderby ? "$orderby $order" : ''; $this->sql_clauses['limits'] = $limits; - $this->request = " - {$this->sql_clauses['select']} - {$this->sql_clauses['from']} - {$where} - {$this->sql_clauses['orderby']} - {$this->sql_clauses['limits']} - "; + // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. + $this->request = + "{$this->sql_clauses['select']} + {$this->sql_clauses['from']} + {$where} + {$this->sql_clauses['orderby']} + {$this->sql_clauses['limits']}"; $this->terms = null; |