Files
WordPress/wp-includes
Scott Taylor c2b712e3b9 In 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.


Built from https://develop.svn.wordpress.org/trunk@27108


git-svn-id: http://core.svn.wordpress.org/trunk@26975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 17:45:12 +00:00
..
2013-07-13 00:37:36 +00:00
2013-12-01 12:48:10 +00:00
2014-01-04 18:09:12 +00:00
2014-01-17 08:38:09 +00:00
2013-10-30 14:39:10 +00:00
2013-09-06 17:19:09 +00:00
2013-10-30 14:39:10 +00:00