Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#53082 new defect (bug)

when using quick edit on category the formatting is stripped from category description

Reported by: Polinet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: reporter-feedback
Focuses: Cc:


I have developed a site for a client that uses extensively edited category descriptions. I found out that if I use "quick edit" function in categories listing page to change the name or slug of the category the formatting of the category description gets completely stripped and only the text remains even though the description field is not even shown during the "quick edit".

Change History (2)

#1 @audrasjb
6 months ago

  • Keywords reporter-feedback added
  • Version 5.7.1 deleted

Hello and welcome to WordPress Trac @Polinet,

I can't reproduce the issue on a fresh install: I added some markup in a category description then I updated it's name/slug using quick edit, and the markup remains in place.

See this screen record: https://i.gyazo.com/8e1c6793d248831e23c6809ca73933c1.mp4

Could you please try to reproduce the issue on a fresh install to make sure it's not related to any plugin?

(also, removing version 5.7.1 as it doesn't look to be related to the last release)


#2 @mukesh27
6 months ago

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' );
Note: See TracTickets for help on using tickets.