From aa644128d6f75467ada3839741cc8ea41230f7c3 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 13 Dec 2016 02:57:41 +0000 Subject: [PATCH] Taxonomy: Use `get_term_link()` instead of `get_category_link()` in `get_term_parents_list()`. `get_category_link()` is a wrapper for `get_term_link()`. Using the unwrapped function makes more sense semantically (it's taxonomy- agnostic) and it's also more parsimonious (the `WP_Error` check in `get_category_link()` is redundant with similar checks just before in `get_term_link()`). Props keesiemeijer. Fixes #17069. Built from https://develop.svn.wordpress.org/trunk@39593 git-svn-id: http://core.svn.wordpress.org/trunk@39533 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 4e2f6823af..5987daca82 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1283,7 +1283,7 @@ function get_term_parents_list( $term_id, $taxonomy, $args = array() ) { $name = ( 'slug' === $args['format'] ) ? $parent->slug : $parent->name; if ( $args['link'] ) { - $list .= '' . $name . '' . $args['separator']; + $list .= '' . $name . '' . $args['separator']; } else { $list .= $name . $args['separator']; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9b9c5dc5fa..79aa664a04 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39592'; +$wp_version = '4.8-alpha-39593'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.