Make WordPress Core

Opened 2 years ago

Closed 15 months ago

Last modified 13 months ago

#53082 closed defect (bug) (worksforme)

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

Reported by: polinet's profile Polinet Owned by:
Milestone: 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 (6)

#1 @audrasjb
2 years 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:

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
2 years 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' );

This ticket was mentioned in Slack in #core by abhanonstopnews. View the logs.

15 months ago

#4 @webcommsat
15 months ago

Component bug scrub 14 March 2022:

  • @webcommsat could not replicate the issue
  • post scrub @marybaum could not replicate the issue
  • confirmed ticket appears to be fixed by @jbaudras, and can be closed as 'works for me'
Last edited 15 months ago by webcommsat (previous) (diff)

#5 @webcommsat
15 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

#6 @desrosj
13 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.