From b9b0431d2988c9054b8831d5435916bc80cb09db Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@16430 602fd350-edb4-49c9-b593-d223f7449a82 --- 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');