From 6ea65911145806c9411031fd9f253409a3e1bf61 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 21 Aug 2019 16:26:47 +0000 Subject: [PATCH] Docs: Correct type for the `$deprecated` argument of `get_terms()`. Props itowhid06. Fixes #47915. git-svn-id: https://develop.svn.wordpress.org/trunk@45872 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index c6f2854a10..2db5038ef1 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -1126,9 +1126,9 @@ function get_term_to_edit( $id, $taxonomy ) { * * @internal The `$deprecated` parameter is parsed for backward compatibility only. * - * @param string|array $args Optional. Array or string of arguments. See WP_Term_Query::__construct() + * @param array|string $args Optional. Array or string of arguments. See WP_Term_Query::__construct() * for information on accepted arguments. Default empty. - * @param array $deprecated Argument array, when using the legacy function parameter format. If present, this + * @param array|string $deprecated Argument array, when using the legacy function parameter format. If present, this * parameter will be interpreted as `$args`, and the first function parameter will * be parsed as a taxonomy or array of taxonomies. * @return array|int|WP_Error List of WP_Term instances and their children. Will return WP_Error, if any of taxonomies