From 4beb3ab36efa621982771a27a1a21e3868670e10 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 17 Nov 2010 17:10:50 +0000 Subject: [PATCH] get_tag_link and get_category_link can also return WP_Error. fixes #15449. git-svn-id: http://svn.automattic.com/wordpress/trunk@16430 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 9f15a87daa..37fd19409e 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -13,7 +13,7 @@ * @see get_term_link() * * @param int $category_id Category ID. - * @return string + * @return string|WP_Error Link on success, WP_Error if category does not exist. */ function get_category_link( $category_id ) { return get_term_link((int)$category_id, 'category'); @@ -959,7 +959,7 @@ class Walker_CategoryDropdown extends Walker { * @see get_term_link() * * @param int $tag_id Tag (term) ID. - * @return string + * @return string|WP_Error Link on success, WP_Error if tag does not exist. */ function get_tag_link( $tag_id ) { return get_term_link( (int)$tag_id, 'post_tag');