Make WordPress Core

Ticket #43345: 43345.2.patch

File 43345.2.patch, 1.2 KB (added by sathyapulse, 5 years ago)

Adds detailed documentation of the return 0.

  • src/wp-includes/taxonomy.php

     
    13601360 * @param int|string $term     The term to check. Accepts term ID, slug, or name.
    13611361 * @param string     $taxonomy Optional. The taxonomy name to use.
    13621362 * @param int        $parent   Optional. ID of parent term under which to confine the exists search.
    1363  * @return mixed Returns null if the term does not exist. Returns the term ID
    1364  *               if no taxonomy is specified and the term ID exists. Returns
    1365  *               an array of the term ID and the term taxonomy ID if the taxonomy
    1366  *               is specified and the pairing exists.
     1363 * @return mixed Returns null if the term does not exist.
     1364 *               Returns the term ID if no taxonomy is specified and the term ID exists.
     1365 *               Returns an array of the term ID and the term taxonomy ID if the taxonomy is specified and the pairing exists.
     1366 *               Returns 0 if term ID 0 is passed to the function. Term ID 0 assigned to the default Uncategorized term.
    13671367 */
    13681368function term_exists( $term, $taxonomy = '', $parent = null ) {
    13691369        global $wpdb;