Changeset 34696 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 09/29/2015 07:11:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r34625 r34696 499 499 * @type int $child_of Term ID to retrieve child terms of. See {@link get_terms()}. Default 0. 500 500 * @type array|string $exclude Array or comma/space-separated string of term IDs to exclude. 501 * See {@link get_terms()}. Default empty string. 501 * If `$hierarchical` is true, descendants of `$exclude` terms will also 502 * be excluded; see `$exclude_tree`. See {@link get_terms()}. 503 * Default empty string. 502 504 * @type array|string $exclude_tree Array or comma/space-separated string of term IDs to exclude, along 503 505 * with their descendants. See {@link get_terms()}. Default empty string. … … 537 539 $r['pad_counts'] = true; 538 540 541 // Descendants of exclusions should be excluded too. 539 542 if ( true == $r['hierarchical'] ) { 540 $r['exclude_tree'] = $r['exclude']; 543 $exclude_tree = array(); 544 545 if ( $r['exclude_tree'] ) { 546 $exclude_tree = array_merge( $exclude_tree, (array) $r['exclude_tree'] ); 547 } 548 549 if ( $r['exclude'] ) { 550 $exclude_tree = array_merge( $exclude_tree, (array) $r['exclude'] ); 551 } 552 553 $r['exclude_tree'] = $exclude_tree; 541 554 $r['exclude'] = ''; 542 555 }
Note: See TracChangeset
for help on using the changeset viewer.