From 5a6cfb0bb7b6d6383b6871fb033eba2080681f76 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 4 Oct 2016 02:28:48 +0000 Subject: [PATCH] Docs: Improve description for `term_exists()` `$term` param. Props Kenshino. Fixes #37224. git-svn-id: https://develop.svn.wordpress.org/trunk@38716 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index e2a5f81f6c..4edae370c1 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -1397,7 +1397,7 @@ function update_termmeta_cache( $term_ids ) { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param int|string $term The term to check + * @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