mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 14:17:06 +00:00
cf1d77c1010b2eb3c83314481327c72535f499c0
get_terms(), do not override 'hierarchical' and 'pad_counts' when 'parent' is present.
The previous behavior resulted in descendant terms being improperly excluded from the results when passing a 'parent', even when 'hierarchical' had been set to true. The patch also adds unit tests that demonstrate the various interactions between the 'child_of', 'parent', and 'hierarchical' parameters of `get_terms()`. Props landakram. Fixes #29815. git-svn-id: https://develop.svn.wordpress.org/trunk@30107 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
243 MiB
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%