Ticket #28538: 28538.diff
File 28538.diff, 788 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/taxonomy.php
1681 1681 * @param string $taxonomy The taxonomy name to use 1682 1682 * @param int $parent ID of parent term under which to confine the exists search. 1683 1683 * @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 if the taxonomy is 1685 * passed and the pairing exists. 1685 1686 */ 1686 1687 function term_exists($term, $taxonomy = '', $parent = 0) { 1687 1688 global $wpdb;