Make WordPress Core

Changeset 42418


Ignore:
Timestamp:
12/22/2017 02:49:55 AM (6 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.

Merges [42417] to the 4.9 branch.

Props jorbin.
Fixes #42605.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/category-template.php

    r42372 r42418  
    11561156 * @since 4.9.2 The `$taxonomy` parameter was deprecated.
    11571157 *
    1158  * @param int $term Optional. Term ID. Will use global term ID by default.
     1158 * @param int  $term       Optional. Term ID. Will use global term ID by default.
     1159 * @param null $deprecated Deprecated argument.
    11591160 * @return string Term description, available.
    11601161 */
    1161 function term_description( $term = 0 ) {
     1162function term_description( $term = 0, $deprecated = null ) {
    11621163    if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) {
    11631164        $term = get_queried_object();
Note: See TracChangeset for help on using the changeset viewer.