diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index e8485d4665..c28bef68d6 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1681,7 +1681,7 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { * * @param string $taxonomy Taxonomy name * @param array|string $args Overwrite defaults. See get_terms() - * @return int How many terms are in $taxonomy + * @return int|WP_Error How many terms are in $taxonomy. WP_Error if $taxonomy does not exist. */ function wp_count_terms( $taxonomy, $args = array() ) { $defaults = array('hide_empty' => false);