Changeset 25384
- Timestamp:
- 09/12/2013 05:08:33 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r25351 r25384 1239 1239 $args['number'] = absint( $args['number'] ); 1240 1240 $args['offset'] = absint( $args['offset'] ); 1241 if ( !$single_taxonomy || ! is_taxonomy_hierarchical($taxonomies[0]) ||1241 if ( !$single_taxonomy || ! is_taxonomy_hierarchical( reset( $taxonomies ) ) || 1242 1242 '' !== $args['parent'] ) { 1243 1243 $args['child_of'] = 0; -
trunk/tests/phpunit/tests/term/getTerms.php
r25257 r25384 86 86 $term_id = $this->factory->tag->create(); 87 87 $terms = get_terms( array( '111' => 'post_tag' ), array( 'hide_empty' => false ) ); 88 $this->assertEquals( $term_id, $terms[0]->term_id );88 $this->assertEquals( $term_id, reset( $terms )->term_id ); 89 89 } 90 90
Note: See TracChangeset
for help on using the changeset viewer.