Make WordPress Core

Changeset 42417


Ignore:
Timestamp:
12/22/2017 02:47:49 AM (7 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r42368 r42417  
    12031203 * @since 4.9.2 The `$taxonomy` parameter was deprecated.
    12041204 *
    1205  * @param int $term Optional. Term ID. Will use global term ID by default.
     1205 * @param int  $term       Optional. Term ID. Will use global term ID by default.
     1206 * @param null $deprecated Deprecated argument.
    12061207 * @return string Term description, available.
    12071208 */
    1208 function term_description( $term = 0 ) {
     1209function term_description( $term = 0, $deprecated = null ) {
    12091210    if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) {
    12101211        $term = get_queried_object();
Note: See TracChangeset for help on using the changeset viewer.