WordPress.org

Make WordPress Core

Ticket #19565: 19565.patch

File 19565.patch, 665 bytes (added by johnbillion, 4 years ago)
  • wp-includes/taxonomy.php

     
    14441444 * @param int|string $term The term to check 
    14451445 * @param string $taxonomy The taxonomy name to use 
    14461446 * @param int $parent ID of parent term under which to confine the exists search. 
    1447  * @return mixed Get the term id or Term Object, if exists. 
     1447 * @return mixed 0 if the term doesn't exist, the term ID if $taxonomy is empty, or the term object as an array otherwise. 
    14481448 */ 
    14491449function term_exists($term, $taxonomy = '', $parent = 0) { 
    14501450        global $wpdb;