Correct $taxonomies parameter description in get_terms() filters.

props dlh.
fixes #30851.
Built from https://develop.svn.wordpress.org/trunk@30994


git-svn-id: http://core.svn.wordpress.org/trunk@30976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-12-28 01:44:24 +00:00
parent fb54c6d7c9
commit 200ca064b0

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