diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 370cb46ad5..696dfa6e18 100644
a
|
b
|
function wp_count_terms( $taxonomy, $args = array() ) { |
1693 | 1693 | 'taxonomy' => $taxonomy, |
1694 | 1694 | 'hide_empty' => false, |
1695 | 1695 | ); |
1696 | | $args = wp_parse_args( $args, $defaults ); |
| 1696 | /** |
| 1697 | * This filter is used to filter the arguments for wp_count_terms query. |
| 1698 | * |
| 1699 | * @param array $args Count Term Query Arguments. |
| 1700 | */ |
| 1701 | $args = apply_filters( 'wp_count_terms_args', wp_parse_args( $args, $defaults ) ); |
1697 | 1702 | |
1698 | 1703 | // Backward compatibility. |
1699 | 1704 | if ( isset( $args['ignore_empty'] ) ) { |