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:
parent
dfc11a170b
commit
666cd37087
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user