Make WordPress Core

Changeset 27457


Ignore:
Timestamp:
03/07/2014 07:15:11 PM (11 years ago)
Author:
wonderboymusic
Message:

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

Fixes #27312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r27300 r27457  
    10511051 * @param string $term_id ID of Term to get children
    10521052 * @param string $taxonomy Taxonomy Name
    1053  * @return array|WP_Error List of Term Objects. WP_Error returned if $taxonomy does not exist
     1053 * @return array|WP_Error List of Term IDs. WP_Error returned if $taxonomy does not exist
    10541054 */
    10551055function get_term_children( $term_id, $taxonomy ) {
Note: See TracChangeset for help on using the changeset viewer.