Docs: Improve documentation for `wp_count_terms()`.
Props bordoni, swissspidy. Fixes #34861. Built from https://develop.svn.wordpress.org/trunk@35895 git-svn-id: http://core.svn.wordpress.org/trunk@35859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
188d41b53c
commit
8ad27a1405
|
@ -2000,13 +2000,12 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
|
||||||
*
|
*
|
||||||
* Default $args is 'hide_empty' which can be 'hide_empty=true' or array('hide_empty' => true).
|
* Default $args is 'hide_empty' which can be 'hide_empty=true' or array('hide_empty' => true).
|
||||||
*
|
*
|
||||||
* @todo Document $args as a hash notation.
|
|
||||||
*
|
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param string $taxonomy Taxonomy name
|
* @param string $taxonomy Taxonomy name.
|
||||||
* @param array|string $args Overwrite defaults. See get_terms()
|
* @param array|string $args Optional. Array of arguments that get passed to {@see get_terms()}.
|
||||||
* @return array|int|WP_Error How many terms are in $taxonomy. WP_Error if $taxonomy does not exist.
|
* Default empty array.
|
||||||
|
* @return array|int|WP_Error Number of terms in that taxonomy or WP_Error if the taxonomy does not exist.
|
||||||
*/
|
*/
|
||||||
function wp_count_terms( $taxonomy, $args = array() ) {
|
function wp_count_terms( $taxonomy, $args = array() ) {
|
||||||
$defaults = array('hide_empty' => false);
|
$defaults = array('hide_empty' => false);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-35894';
|
$wp_version = '4.5-alpha-35895';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue