mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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 |
||
|---|---|---|
| src | ||
| tests | ||
| tools/i18n | ||
| .editorconfig | ||
| .gitignore | ||
| .jshintrc | ||
| .travis.yml | ||
| Gruntfile.js | ||
| package.json | ||
| phpunit.xml.dist | ||
| wp-cli.yml | ||
| wp-config-sample.php | ||
| wp-tests-config-sample.php | ||