Changeset 27108 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 02/06/2014 05:44:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r27102 r27108 1280 1280 $args['offset'] = absint( $args['offset'] ); 1281 1281 if ( !$single_taxonomy || ! is_taxonomy_hierarchical( reset( $taxonomies ) ) || 1282 '' !== $args['parent']) {1282 ( '' !== $args['parent'] && 0 !== $args['parent'] ) ) { 1283 1283 $args['child_of'] = 0; 1284 1284 $args['hierarchical'] = false; … … 3003 3003 } 3004 3004 3005 if ( $term->term_id == $term_id ) 3005 if ( $term->term_id == $term_id ) { 3006 if ( isset( $has_children[$term_id] ) ) { 3007 foreach ( $has_children[$term_id] as $t_id ) { 3008 if ( $use_id ) { 3009 $term_list[] = $t_id; 3010 } else { 3011 $term_list[] = get_term( $t_id, $taxonomy ); 3012 } 3013 } 3014 } 3006 3015 continue; 3016 } 3007 3017 3008 3018 if ( $term->parent == $term_id ) { … … 3525 3535 * Determine if a post's cache for the passed taxonomy 3526 3536 * is in sync. 3527 * 3537 * 3528 3538 * @since 3.9.0 3529 3539 *
Note: See TracChangeset
for help on using the changeset viewer.