wordpress-develop/tests/phpunit/tests/term
Boone Gorges f22ba848df Return null from get_term() on taxonomy mismatch.
[34997] caused `get_term()` to return an error object in the case when
`$taxonomy` did not match the taxonomy of the located term. This was an
inadvertant change from the previous behavior, when `get_term()` would return
null in these cases.

Props dlh.
See #14162. Fixes #34332.

git-svn-id: https://develop.svn.wordpress.org/trunk@35227 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 21:41:51 +00:00
..
cache.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
categoryExists.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
getEditTermLink.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
getTerm.php Return null from get_term() on taxonomy mismatch. 2015-10-16 21:41:51 +00:00
getTermBy.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
getTermField.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
getTermLink.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
getTerms.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
isObjectInTerm.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
meta.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
query.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
slashes.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +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
termExists.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpDeleteObjectTermRelationships.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpDeleteTerm.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpGenerateTagCloud.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpGetObjectTerms.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpInsertTerm.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpUniqueTermSlug.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
wpUpdateTerm.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00