From b71e24216d7c253931d4afe88464d4d050820241 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Dec 2014 01:43:47 +0000 Subject: [PATCH] Correct $taxonomies parameter description in get_terms() filters. props dlh. fixes #30851. git-svn-id: https://develop.svn.wordpress.org/trunk@30994 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 4050100056..83aacdd13e 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -1648,8 +1648,8 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 3.1.0 * - * @param array $args An array of arguments. - * @param string|array $taxonomies A taxonomy or array of taxonomies. + * @param array $args An array of arguments. + * @param array $taxonomies An array of taxonomies. */ $args = apply_filters( 'get_terms_args', $args, $taxonomies ); @@ -1686,9 +1686,9 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 2.3.0 * - * @param array $cache Cached array of terms for the given taxonomy. - * @param string|array $taxonomies A taxonomy or array of taxonomies. - * @param array $args An array of arguments to get terms. + * @param array $cache Cached array of terms for the given taxonomy. + * @param array $taxonomies An array of taxonomies. + * @param array $args An array of arguments to get terms. */ $cache = apply_filters( 'get_terms', $cache, $taxonomies, $args ); return $cache; @@ -1718,9 +1718,9 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 2.8.0 * - * @param string $orderby ORDERBY clause of the terms query. - * @param array $args An array of terms query arguments. - * @param string|array $taxonomies A taxonomy or array of taxonomies. + * @param string $orderby ORDERBY clause of the terms query. + * @param array $args An array of terms query arguments. + * @param array $taxonomies An array of taxonomies. */ $orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies ); @@ -1785,9 +1785,9 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 2.3.0 * - * @param string $exclusions NOT IN clause of the terms query. - * @param array $args An array of terms query arguments. - * @param string|array $taxonomies A taxonomy or array of taxonomies. + * @param string $exclusions NOT IN clause of the terms query. + * @param array $args An array of terms query arguments. + * @param array $taxonomies An array of taxonomies. */ $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies ); @@ -1877,9 +1877,9 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 2.8.0 * - * @param array $selects An array of fields to select for the terms query. - * @param array $args An array of term query arguments. - * @param string|array $taxonomies A taxonomy or array of taxonomies. + * @param array $selects An array of fields to select for the terms query. + * @param array $args An array of term query arguments. + * @param array $taxonomies An array of taxonomies. */ $fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) ); @@ -1892,9 +1892,9 @@ function get_terms( $taxonomies, $args = '' ) { * * @since 3.1.0 * - * @param array $pieces Terms query SQL clauses. - * @param string|array $taxonomies A taxonomy or array of taxonomies. - * @param array $args An array of terms query arguments. + * @param array $pieces Terms query SQL clauses. + * @param array $taxonomies An array of taxonomies. + * @param array $args An array of terms query arguments. */ $clauses = apply_filters( 'terms_clauses', compact( $pieces ), $taxonomies, $args ); $fields = isset( $clauses[ 'fields' ] ) ? $clauses[ 'fields' ] : '';