Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#13151 closed defect (bug) (invalid)

add filter to term_description()

Reported by: scribu Owned by: westi
Milestone: Priority: low
Severity: normal Version:
Component: Plugins Keywords: has-patch hooks
Focuses: Cc:


Since term_description() is a wrapper, it should also apply a filter to it's output.

Attachments (1)

term_description.diff (536 bytes) - added by scribu 8 years ago.

Download all attachments as: .zip

Change History (6)

#1 @scribu
8 years ago

Example use case: the Front-end Editor plugin.

Having this filter would allow the plugin to make term descriptions editable from the front-end.

#2 @scribu
8 years ago

  • Milestone 3.0 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Just found all the possible filters already added in sanitize_term_field().

#3 follow-up: @lkraav
4 years ago

Hey, @scribu, pardon me for gravedigging but what sense do you think https://core.trac.wordpress.org/browser/trunk/src/wp-includes/default-filters.php#L112 makes?

There is no such thing as apply_filters "term_description" anywhere in core code.

#4 in reply to: ↑ 3 @SergeyBiryukov
4 years ago

Replying to lkraav:

There is no such thing as apply_filters "term_description" anywhere in core code.

There are dynamic filters in sanitize_term_field(): tags/3.8.1/src/wp-includes/taxonomy.php#L1722.

#5 @lkraav
4 years ago

Obviously. Sorry for the spam.

Note: See TracTickets for help on using tickets.