From b5d92c4354bc21a56dfee6f3491540e36e151d40 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Jan 2011 23:36:42 +0000 Subject: [PATCH] Correct the @return for get_term_link. It always has been able to return WP_Error. props SergeyBiryukov, see #16282. git-svn-id: https://develop.svn.wordpress.org/trunk@17341 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index c3cbf3648a..3c1a3c770c 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2815,7 +2815,7 @@ function _update_post_term_count( $terms, $taxonomy ) { * * @param object|int|string $term * @param string $taxonomy (optional if $term is object) - * @return string HTML link to taxonomy term archive + * @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist. */ function get_term_link( $term, $taxonomy = '') { global $wp_rewrite;