diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
index e3729dfaa9..d1d5e3f420 100644
a
|
b
|
function wp_dropdown_categories( $args = '' ) { |
494 | 494 | * the list. Default false (title will always be shown). |
495 | 495 | * @type bool $hierarchical Whether to include terms that have non-empty descendants. |
496 | 496 | * See get_terms(). Default true. |
| 497 | * @type array|string $include Array or comma/space-separated string of term ids to include. |
| 498 | * See get_terms(). Default empty string. |
497 | 499 | * @type string $order Which direction to order categories. Accepts 'ASC' or 'DESC'. |
498 | 500 | * Default 'ASC'. |
499 | 501 | * @type string $orderby The column to use for ordering categories. Default 'name'. |
… |
… |
function wp_list_categories( $args = '' ) { |
519 | 521 | 'current_category' => 0, |
520 | 522 | 'depth' => 0, |
521 | 523 | 'echo' => 1, |
| 524 | 'include' => '', |
522 | 525 | 'exclude' => '', |
523 | 526 | 'exclude_tree' => '', |
524 | 527 | 'feed' => '', |
… |
… |
function wp_list_categories( $args = '' ) { |
565 | 568 | $parsed_args['class'] = ( 'category' == $parsed_args['taxonomy'] ) ? 'categories' : $parsed_args['taxonomy']; |
566 | 569 | } |
567 | 570 | |
| 571 | if ( ! empty( $args['include'] ) ) { |
| 572 | $parsed_args['include'] = $args['include']; |
| 573 | } |
| 574 | |
568 | 575 | if ( ! taxonomy_exists( $parsed_args['taxonomy'] ) ) { |
569 | 576 | return false; |
570 | 577 | } |