[wp-trac] [WordPress Trac] #46166: wp_update_term sanitizes the description, removing all html

WordPress Trac noreply at wordpress.org
Fri Feb 1 13:56:53 UTC 2019


#46166: wp_update_term sanitizes the description, removing all html
--------------------------+-----------------------------
 Reporter:  sighan        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.9.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list