From af4f4f860e632d69b759361836845c8a949241e0 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Fri, 22 Dec 2017 02:50:39 +0000 Subject: [PATCH] Taxonomy: Restore deprecated argument to `term_description()` signature. This ensures that the parameter can't be reused for something else in the future. Merges [42417] to the 4.9 branch. Props jorbin. Fixes #42605. Built from https://develop.svn.wordpress.org/branches/4.9@42418 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42249 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index b3a4449ca2..e090fac264 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1155,10 +1155,11 @@ function tag_description( $tag = 0 ) { * @since 2.8.0 * @since 4.9.2 The `$taxonomy` parameter was deprecated. * - * @param int $term Optional. Term ID. Will use global term ID by default. + * @param int $term Optional. Term ID. Will use global term ID by default. + * @param null $deprecated Deprecated argument. * @return string Term description, available. */ -function term_description( $term = 0 ) { +function term_description( $term = 0, $deprecated = null ) { if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) { $term = get_queried_object(); if ( $term ) {