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