wordpress-develop/tests/phpunit/tests/term
Jonny Harris 6d89ea8f09 Taxonomy: Fix caching issues in WP_Term_Query class.
Introduced [52836] when passing `child_of` or `pad_counts` parameters to `get_terms` or `WP_Term_Query` class, the array of terms received by the query, was not correctly cached. This 
change simplifies the logic in `WP_Term_Query` and ensures terms are correctly cached. This change also, improves performance, by only caching an array of term ids where possible.  

Props denishua, spacedmonkey, oztaser, peterwilsoncc, SergeyBiryukov, georgestephanis, jnz31, knutsp, mukesh27, costdev.
Fixes #55837.



git-svn-id: https://develop.svn.wordpress.org/trunk@53496 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-14 11:41:33 +00:00
..
cache.php Taxonomy: Only store term_ids and object_ids in WP_Term_Query query caches. 2022-03-10 10:56:09 +00:00
categoryExists.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getEditTermLink.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
getTagLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTerm.php Taxonomy: Use get_terms instead of a database lookup in term_exists(). 2022-03-11 11:05:02 +00:00
getTermBy.php Taxonomy: Only store term_ids and object_ids in WP_Term_Query query caches. 2022-03-10 10:56:09 +00:00
getTermField.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
getTermLink.php Docs: Fix typo in some get_edit_term_link() test DocBlocks. 2021-12-02 05:39:57 +00:00
getTermParentsList.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
getTerms.php Taxonomy: Fix caching issues in WP_Term_Query class. 2022-06-14 11:41:33 +00:00
getTheTerms.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
isObjectInTerm.php Taxonomy: Only store term_ids and object_ids in WP_Term_Query query caches. 2022-03-10 10:56:09 +00:00
meta.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
query.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00
slashes.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
splitSharedTerm.php Taxonomy: Use get_terms instead of a database lookup in term_exists(). 2022-03-11 11:05:02 +00:00
taxQuery.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
termCounts.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
termExists.php Taxonomy: Use get_terms instead of a database lookup in term_exists(). 2022-03-11 11:05:02 +00:00
wpDeleteObjectTermRelationships.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
wpDeleteTerm.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
wpGenerateTagCloud.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpGetObjectTerms.php Taxonomy: Use get_terms instead of a database lookup in term_exists(). 2022-03-11 11:05:02 +00:00
wpInsertTerm.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpRemoveObjectTerms.php Bust object term cache in wp_remove_object_terms(). 2015-10-19 01:52:22 +00:00
wpSetObjectTerms.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
wpTaxonomy.php Posts, Post Types/Taxonomies: Add object type specific registration filters. 2022-04-11 05:09:53 +00:00
wpTerm.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpUniqueTermSlug.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpUpdateTerm.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00