wordpress-develop/tests/phpunit/tests/term
Boone Gorges 255aaa471e Fix orderby meta handling for WP_Term_Query.
In order to allow meta-related values of `orderby` to be handled properly,
the term query's `meta_query` object must run its `get_sql()` method before
`orderby` parsing.

Fixing this bug required addressing another bug in `WP_Meta_Query`, which
caused the table alias index not to be reset when calling `get_sql()`
multiple times on the same object.

Props littler.chicken.
Fixes #37151.

git-svn-id: https://develop.svn.wordpress.org/trunk@37860 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-25 16:22:55 +00:00
..
cache.php Populate term cache with proper clone of term objects. 2016-01-15 19:34:16 +00:00
categoryExists.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getEditTermLink.php Fix test related to cap check in get_edit_term_link(). 2016-03-14 01:51:12 +00:00
getTerm.php Make get_term() behave more consistently in the context of shared terms. 2015-11-05 16:44:59 +00:00
getTermBy.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getTermField.php Tests: Add some more test coverage for get_term_field(). 2015-10-19 03:28:49 +00:00
getTermLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getTerms.php Taxonomy: No, really, don't pass results of 'count' query through 'get_terms' filter. 2016-06-04 12:19:15 +00:00
getTheTerms.php Store only term IDs in object term relationships caches. 2016-05-26 04:49:10 +00:00
isObjectInTerm.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
meta.php Allow term meta lazy-loading to be selectively disabled in WP_Query. 2016-05-28 03:09:09 +00:00
query.php Fix orderby meta handling for WP_Term_Query. 2016-06-25 16:22:55 +00:00
slashes.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
splitSharedTerm.php When splitting a shared 'nav_menu' term, ensure that nav items and theme locations are retained. 2015-08-12 14:06:21 +00:00
taxQuery.php Tests: Move WP_Tax_Query tests to a more appropriate file. 2016-06-11 03:26:07 +00:00
termExists.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteObjectTermRelationships.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteTerm.php Taxonomy: Pass object ids to delete_* actions. 2015-12-23 23:43:03 +00:00
wpGenerateTagCloud.php Better focus in tag cloud tests. 2015-12-17 17:11:07 +00:00
wpGetObjectTerms.php Fix termmeta pre-fetching in wp_get_object_terms(). 2016-05-25 18:44:00 +00:00
wpInsertTerm.php Add test demonstrating that wp_insert_term() will suffix a slug if the new term's auto-generated slug matches that of an existing term. 2016-06-06 21:03:34 +00:00
wpRemoveObjectTerms.php Bust object term cache in wp_remove_object_terms(). 2015-10-19 01:52:22 +00:00
wpSetObjectTerms.php Tests: Compare wp_set_object_terms() results using term_taxonomy_id. 2016-06-06 23:42:43 +00:00
wpUniqueTermSlug.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpUpdateTerm.php Don't clear object relationship caches on term update. 2016-05-30 04:10:16 +00:00