WordPress.org

Make WordPress Core

Changeset 21843


Ignore:
Timestamp:
09/14/2012 04:11:30 PM (6 years ago)
Author:
nacin
Message:

Update docs to reflect that wp_count_terms() can return WP_Error when the taxonomy does not exist. props SergeyBiryukov, fixes #21888.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r21792 r21843  
    16821682 * @param string $taxonomy Taxonomy name
    16831683 * @param array|string $args Overwrite defaults. See get_terms()
    1684  * @return int How many terms are in $taxonomy
     1684 * @return int|WP_Error How many terms are in $taxonomy. WP_Error if $taxonomy does not exist.
    16851685 */
    16861686function wp_count_terms( $taxonomy, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.