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
This commit is contained in:
Sergey Biryukov 2014-12-28 01:43:47 +00:00
parent 6d5084ef1c
commit b71e24216d

View File

@ -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' ] : '';