[wp-trac] [WordPress Trac] #53082: when using quick edit on category the formatting is stripped from category description

WordPress Trac noreply at wordpress.org
Sun Apr 25 05:38:48 UTC 2021


#53082: when using quick edit on category the formatting is stripped from category
description
-------------------------------+------------------------------
 Reporter:  Polinet            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Quick/Bulk Edit    |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by mukesh27):

 Hi there!

 Can you please share the HTML content that you are trying to add to the
 category description?

 In my test when I save/update category data it will remove HTML tags from
 the description.

 `<div>WordPress</div>` remove the `div` tag.

 If you want to allow HTML in category description add below filter code in
 your theme functions.php

 {{{
 remove_filter( 'term_description', 'wp_kses_data' );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53082#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list