get_terms()
, don't set automatically hierarchical
to false
when parent => 0
is passed. The default value for parent
is ''
.
In `_get_term_children()`, don't skip a top-level term without first including its children in the returned term list. Ironically, the call to `_get_term_children()` in `get_terms()` has a comment stating `"Make sure we show empty categories that have children."`, but it didn't work if you were retrieving top-level categories only. All unit tests pass. Added a unit test based on the use case described in this ticket. Fixes #26903. git-svn-id: https://develop.svn.wordpress.org/trunk@27108 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
76.7%
CSS
10.9%
JavaScript
9.2%
Modelica
2.4%
HTML
0.6%
Other
0.2%