Make WordPress Core

Ticket #34861: 34861.diff

File 34861.diff, 1.1 KB (added by swissspidy, 9 years ago)
  • src/wp-includes/taxonomy.php

    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) { 
    20002000 *
    20012001 * Default $args is 'hide_empty' which can be 'hide_empty=true' or array('hide_empty' => true).
    20022002 *
    2003  * @todo Document $args as a hash notation.
    2004  *
    20052003 * @since 2.3.0
    20062004 *
    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.
    20102009 */
    20112010function wp_count_terms( $taxonomy, $args = array() ) {
    20122011        $defaults = array('hide_empty' => false);