Make WordPress Core

Opened 6 years ago

#46166 new defect (bug)

wp_update_term sanitizes the description, removing all html

Reported by: sighan's profile sighan Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.8
Component: Taxonomy Keywords:
Focuses: Cc:

Description

The function wp_update_term automatically sanitizes the description of the term, thereby removing all html tags added to it. This happens even when no description is passed via the $args parameter.

This does not seem intended, as the description field is basically the content of the term and should be able to hold html information (which is in fact the case if I edit it within the WordPress backend and save it).

Change History (0)

Note: See TracTickets for help on using tickets.