diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index f361c3b..8e68567 100644
|
|
|
function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
|
| 2000 | 2000 | * |
| 2001 | 2001 | * Default $args is 'hide_empty' which can be 'hide_empty=true' or array('hide_empty' => true). |
| 2002 | 2002 | * |
| 2003 | | * @todo Document $args as a hash notation. |
| 2004 | | * |
| 2005 | 2003 | * @since 2.3.0 |
| 2006 | 2004 | * |
| 2007 | | * @param string $taxonomy Taxonomy name |
| 2008 | | * @param array|string $args Overwrite defaults. See get_terms() |
| 2009 | | * @return array|int|WP_Error How many terms are in $taxonomy. WP_Error if $taxonomy does not exist. |
| | 2005 | * @param string $taxonomy Taxonomy name. |
| | 2006 | * @param array|string $args Optional. Array of arguments that get passed to {@see 'get_terms'}. |
| | 2007 | * Default empty array. |
| | 2008 | * @return array|int|WP_Error Number of terms in that taxonomy or WP_Error if the taxonomy does not exist. |
| 2010 | 2009 | */ |
| 2011 | 2010 | function wp_count_terms( $taxonomy, $args = array() ) { |
| 2012 | 2011 | $defaults = array('hide_empty' => false); |