Taxonomy: Restore deprecated argument to term_description()
signature.
This ensures that the parameter can't be reused for something else in the future. Props jorbin. Fixes #42605. git-svn-id: https://develop.svn.wordpress.org/trunk@42417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c8d49456e
commit
75f4438fe5
@ -1202,10 +1202,11 @@ function tag_description( $tag = 0 ) {
|
|||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 4.9.2 The `$taxonomy` parameter was deprecated.
|
* @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.
|
* @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() ) ) {
|
if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) {
|
||||||
$term = get_queried_object();
|
$term = get_queried_object();
|
||||||
if ( $term ) {
|
if ( $term ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user