diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 77c0d4532a..27061e7266 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1111,17 +1111,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 ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 487cd538fe..e84f073083 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42365'; +$wp_version = '5.0-alpha-42366'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.