Taxonomy: Remove an unnecessary double assignment in `WP_Term_Query::get_terms()`.

Props birgire.
Fixes #37254.

git-svn-id: https://develop.svn.wordpress.org/trunk@38020 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2016-07-09 11:48:13 +00:00
parent d1db1f5e10
commit 73fc7915cd
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ class WP_Term_Query {
$this->sql_clauses['orderby'] = $orderby ? "ORDER BY $orderby $order" : '';
$this->sql_clauses['limits'] = $limits;
$this->request = $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
$this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}";
// $args can be anything. Only use the args defined in defaults to compute the key.
$key = md5( serialize( wp_array_slice_assoc( $args, array_keys( $this->query_var_defaults ) ) ) . serialize( $taxonomies ) . $this->request );