diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 92a4ee7..6b627b5 100644
a
|
b
|
function has_term_meta( $term_id ) { |
1289 | 1289 | * @param int|string $term The term to check. Accepts term ID, slug, or name. |
1290 | 1290 | * @param string $taxonomy The taxonomy name to use |
1291 | 1291 | * @param int $parent Optional. ID of parent term under which to confine the exists search. |
1292 | | * @return mixed Returns null if the term does not exist. Returns the term ID |
1293 | | * if no taxonomy is specified and the term ID exists. Returns |
1294 | | * an array of the term ID and the term taxonomy ID the taxonomy |
1295 | | * is specified and the pairing exists. |
| 1292 | * @return string|array|null Returns null if the term does not exist. Returns the term ID |
| 1293 | * if no taxonomy is specified and the term ID exists. Returns |
| 1294 | * an array of the term ID and the term taxonomy ID the taxonomy |
| 1295 | * is specified and the pairing exists. |
1296 | 1296 | */ |
1297 | 1297 | function term_exists( $term, $taxonomy = '', $parent = null ) { |
1298 | 1298 | global $wpdb; |
… |
… |
function term_exists( $term, $taxonomy = '', $parent = null ) { |
1302 | 1302 | |
1303 | 1303 | if ( is_int($term) ) { |
1304 | 1304 | if ( 0 == $term ) |
1305 | | return 0; |
| 1305 | return null; |
1306 | 1306 | $where = 't.term_id = %d'; |
1307 | 1307 | if ( !empty($taxonomy) ) |
1308 | 1308 | return $wpdb->get_row( $wpdb->prepare( $tax_select . $where . " AND tt.taxonomy = %s", $term, $taxonomy ), ARRAY_A ); |