Make WordPress Core

Changeset 19600


Ignore:
Timestamp:
12/16/2011 08:56:14 PM (13 years ago)
Author:
nacin
Message:

term_exists() @return correction. props johnbillion, fixes #19565.

File:
1 edited

Legend:

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

    r19593 r19600  
    14321432 * Check if Term exists.
    14331433 *
    1434  * Returns the index of a defined term, or 0 (false) if the term doesn't exist.
    1435  *
    14361434 * Formerly is_term(), introduced in 2.3.0.
    14371435 *
     
    14451443 * @param string $taxonomy The taxonomy name to use
    14461444 * @param int $parent ID of parent term under which to confine the exists search.
    1447  * @return mixed Get the term id or Term Object, if exists.
     1445 * @return mixed Returns 0 if the term does not exist. Returns the term ID if no taxonomy is specified
     1446 *  and the term ID exists. Returns an array of the term ID and the taxonomy if the pairing exists.
    14481447 */
    14491448function term_exists($term, $taxonomy = '', $parent = 0) {
Note: See TracChangeset for help on using the changeset viewer.