Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#43381 closed defect (bug) (fixed)

Remove 'category' parameter from category_description function.

Reported by: chetan200891's profile chetan200891 Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version: 4.9.4
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Based on #42771 term_description() no longer passes $taxonomy to
get_term_field(), the parameter is no longer needed and has been deprecated. So I think now we can remove 'category' parameter from category_description function.

Attachments (1)

43381.diff (514 bytes) - added by chetan200891 7 years ago.
Created patch to remove 'category' parameter.

Download all attachments as: .zip

Change History (6)

@chetan200891
7 years ago

Created patch to remove 'category' parameter.

#1 @chetan200891
7 years ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core by chetan200891. View the logs.


7 years ago

#3 @SergeyBiryukov
7 years ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 5.0

#4 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 42890:

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.

#5 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.