From d72bcea816eaf9b670124ca58eafa8dfb0f388cd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 25 Mar 2022 16:46:42 +0000 Subject: [PATCH] Docs: Adjust the `term_exists_default_query_args` filter docs per the documentation standards. Follow-up to [52987]. See #55439. git-svn-id: https://develop.svn.wordpress.org/trunk@52991 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 89eba0ba0d..33c669ceb4 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -1560,14 +1560,16 @@ function term_exists( $term, $taxonomy = '', $parent = null ) { } /** - * Filters default arguments for checking if term exists. + * Filters default query arguments for checking if a term exists. * * @since 6.0.0 * - * @param array $defaults An array of arguments for term_exists. + * @param array $defaults An array of arguments passed to get_terms(). * @param int|string $term The term to check. Accepts term ID, slug, or name. - * @param string $taxonomy The taxonomy name to use. An empty string indicates the search is against all taxonomies. - * @param int|null $parent ID of parent term under which to confine the exists search. Null indicates the search is unconfined. + * @param string $taxonomy The taxonomy name to use. An empty string indicates + * the search is against all taxonomies. + * @param int|null $parent ID of parent term under which to confine the exists search. + * Null indicates the search is unconfined. */ $defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent );