From 666cd37087bb2ecbe01214b20d5c1f78faa2c7ab Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 7 Mar 2014 19:15:11 +0000 Subject: [PATCH] `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 --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 0960fb24ce..de6adbb0b9 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -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 $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 ) { if ( ! taxonomy_exists($taxonomy) )