Make WordPress Core

Changeset 47205


Ignore:
Timestamp:
02/07/2020 05:46:51 PM (5 years ago)
Author:
johnbillion
Message:

Taxonomy: Clarify the docs for the return values of the term_exists() function.

Props dotancohen, sathyapulse

Fixes #43345

File:
1 edited

Legend:

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

    r47187 r47205  
    13491349
    13501350/**
    1351  * Determines whether a term exists.
     1351 * Determines whether a taxonomy term exists.
    13521352 *
    13531353 * Formerly is_term(), introduced in 2.3.0.
     
    13641364 * @param string     $taxonomy Optional. The taxonomy name to use.
    13651365 * @param int        $parent   Optional. ID of parent term under which to confine the exists search.
    1366  * @return mixed Returns null if the term does not exist. Returns the term ID
    1367  *               if no taxonomy is specified and the term ID exists. Returns
    1368  *               an array of the term ID and the term taxonomy ID if the taxonomy
    1369  *               is specified and the pairing exists.
     1366 * @return mixed Returns null if the term does not exist.
     1367 *               Returns the term ID if no taxonomy is specified and the term ID exists.
     1368 *               Returns an array of the term ID and the term taxonomy ID if the taxonomy is specified and the pairing exists.
     1369 *               Returns 0 if term ID 0 is passed to the function.
    13701370 */
    13711371function term_exists( $term, $taxonomy = '', $parent = null ) {
Note: See TracChangeset for help on using the changeset viewer.