From 7c38750b162c784d92f54d9a36044c0f5318fe24 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Mar 2018 23:24:25 +0000 Subject: [PATCH] Taxonomy: In `category_description()`, don't pass the `$taxonomy` parameter to `term_description()`. The parameter was deprecated in [42368] and is now unused. Props chetan200891. Fixes #43381. See #42771. git-svn-id: https://develop.svn.wordpress.org/trunk@42890 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index d1bcf7b31b..9e4ae834a0 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -273,7 +273,7 @@ function the_category( $separator = '', $parents = '', $post_id = false ) { * @return string Category description, available. */ function category_description( $category = 0 ) { - return term_description( $category, 'category' ); + return term_description( $category ); } /**