mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
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:
parent
fb54c6d7c9
commit
200ca064b0
@ -1649,7 +1649,7 @@ 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 $taxonomies An array of taxonomies.
|
||||
*/
|
||||
$args = apply_filters( 'get_terms_args', $args, $taxonomies );
|
||||
|
||||
@ -1687,7 +1687,7 @@ 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 $taxonomies An array of taxonomies.
|
||||
* @param array $args An array of arguments to get terms.
|
||||
*/
|
||||
$cache = apply_filters( 'get_terms', $cache, $taxonomies, $args );
|
||||
@ -1720,7 +1720,7 @@ function get_terms( $taxonomies, $args = '' ) {
|
||||
*
|
||||
* @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 array $taxonomies An array of taxonomies.
|
||||
*/
|
||||
$orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies );
|
||||
|
||||
@ -1787,7 +1787,7 @@ function get_terms( $taxonomies, $args = '' ) {
|
||||
*
|
||||
* @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 array $taxonomies An array of taxonomies.
|
||||
*/
|
||||
$exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies );
|
||||
|
||||
@ -1879,7 +1879,7 @@ function get_terms( $taxonomies, $args = '' ) {
|
||||
*
|
||||
* @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 $taxonomies An array of taxonomies.
|
||||
*/
|
||||
$fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
|
||||
|
||||
@ -1893,7 +1893,7 @@ 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 $taxonomies An array of taxonomies.
|
||||
* @param array $args An array of terms query arguments.
|
||||
*/
|
||||
$clauses = apply_filters( 'terms_clauses', compact( $pieces ), $taxonomies, $args );
|
||||
|
Loading…
Reference in New Issue
Block a user