036bac45bc
When querying for terms in hierarchical taxonomies, `get_terms()` initially queries for all matching terms, and then trims the located results based on the `$number` and `$offset` arguments passed to the function. See #8832. However, a flaw in the original logic meant that results were failing to be trimmed properly in cases where `$offset` exceeds the total number of matching terms; in these cases, we should force an empty array. Props danielbachhuber. Fixes #35935. git-svn-id: https://develop.svn.wordpress.org/trunk@36691 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
.. | ||
phpunit | ||
qunit |