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: https://core.svn.wordpress.org/trunk@39533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment