Changeset 30107 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 10/30/2014 02:11:56 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r30105 r30107 1629 1629 $args['number'] = absint( $args['number'] ); 1630 1630 $args['offset'] = absint( $args['offset'] ); 1631 if ( !$single_taxonomy || ! is_taxonomy_hierarchical( reset( $taxonomies ) ) || 1632 ( '' !== $args['parent'] && 0 !== $args['parent'] ) ) { 1633 $args['child_of'] = 0; 1631 1632 // Save queries by not crawling the tree in the case of multiple taxes or a flat tax. 1633 if ( ! $single_taxonomy || ! is_taxonomy_hierarchical( reset( $taxonomies ) ) ) { 1634 $args['child_of'] = false; 1634 1635 $args['hierarchical'] = false; 1635 1636 $args['pad_counts'] = false; 1637 } 1638 1639 // 'parent' overrides 'child_of'. 1640 if ( 0 < intval( $args['parent'] ) ) { 1641 $args['child_of'] = false; 1636 1642 } 1637 1643
Note: See TracChangeset
for help on using the changeset viewer.