mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Use WP_Term_Query when transforming tax queries.
This change allows tax query transformations to be cached. Props spacedmonkey. Fixes #37038. git-svn-id: https://develop.svn.wordpress.org/trunk@40918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -163,7 +163,7 @@ class Tests_Term_Tax_Query extends WP_UnitTestCase {
|
||||
) );
|
||||
$tq->transform_query( $tq->queries[0], 'term_taxonomy_id' );
|
||||
|
||||
$this->assertSame( $tt_ids, $tq->queries[0]['terms'] );
|
||||
$this->assertEqualSets( $tt_ids, $tq->queries[0]['terms'] );
|
||||
$this->assertSame( 'term_taxonomy_id', $tq->queries[0]['field'] );
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class Tests_Term_Tax_Query extends WP_UnitTestCase {
|
||||
) );
|
||||
$tq->transform_query( $tq->queries[0], 'term_taxonomy_id' );
|
||||
|
||||
$this->assertSame( $tt_ids, $tq->queries[0]['terms'] );
|
||||
$this->assertEqualSets( $tt_ids, $tq->queries[0]['terms'] );
|
||||
$this->assertSame( 'term_taxonomy_id', $tq->queries[0]['field'] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user