diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 46e53be683..6e9d40447c 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1065,15 +1065,7 @@ function walk_category_dropdown_tree() { * @return string Link on success, empty string if tag does not exist. */ function get_tag_link( $tag ) { - if ( ! is_object( $tag ) ) - $tag = (int) $tag; - - $tag = get_term_link( $tag, 'post_tag' ); - - if ( is_wp_error( $tag ) ) - return ''; - - return $tag; + return get_category_link( $tag ); } /**