WordPress.org

Make WordPress Core

Changeset 28753


Ignore:
Timestamp:
06/14/2014 02:56:21 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Correct @return value for term_exists().

props simonwheatley.
fixes #28538.

File:
1 edited

Legend:

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

    r28736 r28753  
    16821682 * @param int $parent ID of parent term under which to confine the exists search.
    16831683 * @return mixed Returns 0 if the term does not exist. Returns the term ID if no taxonomy is specified
    1684  *  and the term ID exists. Returns an array of the term ID and the taxonomy if the pairing exists.
     1684 *               and the term ID exists. Returns an array of the term ID and the term taxonomy ID
     1685 *               if the taxonomy is specified and the pairing exists.
    16851686 */
    16861687function term_exists($term, $taxonomy = '', $parent = 0) {
Note: See TracChangeset for help on using the changeset viewer.