Wordpress/tests
Scott Taylor 8dad11bfe2 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27108 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 17:44:50 +00:00
..
phpunit In get_terms(), don't set automatically hierarchical to false when parent => 0 is passed. The default value for parent is ''. 2014-02-06 17:44:50 +00:00
qunit Add (Q)Unit Tests for the wp.shortcode JS class. 2014-01-17 18:01:34 +00:00