diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 6f44ccefe5..afa8933e35 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -923,7 +923,6 @@ function get_category_feed_link( $cat, $feed = '' ) { * * @param int|WP_Term|object $term The ID or term object whose feed link will be retrieved. * @param string $taxonomy Optional. Taxonomy of `$term_id`. - * Defaults to 'category' if term ID or non WP_Term object is passed. * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. * Default is the value of get_default_feed(). * @return string|false Link to the feed for the term specified by $term_id and $taxonomy. @@ -935,12 +934,12 @@ function get_term_feed_link( $term, $taxonomy = '', $feed = '' ) { $term = get_term( $term, $taxonomy ); - $taxonomy = $term->taxonomy; - if ( empty( $term ) || is_wp_error( $term ) ) { return false; } + $taxonomy = $term->taxonomy; + if ( empty( $feed ) ) { $feed = get_default_feed(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 59043e6a89..47d5154a0f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52257'; +$wp_version = '5.9-alpha-52258'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.