WordPress.org

Make WordPress Core

Ticket #43268: 43268.patch

File 43268.patch, 771 bytes (added by milana_cap, 3 years ago)
  • src/wp-includes/taxonomy.php

     
    13281328 * @param int        $parent   Optional. ID of parent term under which to confine the exists search.
    13291329 * @return mixed Returns null if the term does not exist. Returns the term ID
    13301330 *               if no taxonomy is specified and the term ID exists. Returns
    1331  *               an array of the term ID and the term taxonomy ID the taxonomy
     1331 *               an array of the term ID and the term taxonomy ID if the taxonomy
    13321332 *               is specified and the pairing exists.
    13331333 */
    13341334function term_exists( $term, $taxonomy = '', $parent = null ) {