get_term_children() returns an array of IDs, not objects. The docs have been updated to reflect this.

Fixes #27312.



git-svn-id: https://develop.svn.wordpress.org/trunk@27457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-03-07 19:15:11 +00:00
parent dfc11a170b
commit 666cd37087

View File

@ -1050,7 +1050,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw
* *
* @param string $term_id ID of Term to get children * @param string $term_id ID of Term to get children
* @param string $taxonomy Taxonomy Name * @param string $taxonomy Taxonomy Name
* @return array|WP_Error List of Term Objects. WP_Error returned if $taxonomy does not exist * @return array|WP_Error List of Term IDs. WP_Error returned if $taxonomy does not exist
*/ */
function get_term_children( $term_id, $taxonomy ) { function get_term_children( $term_id, $taxonomy ) {
if ( ! taxonomy_exists($taxonomy) ) if ( ! taxonomy_exists($taxonomy) )