#53082 closed defect (bug) (worksforme)
when using quick edit on category the formatting is stripped from category description
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Quick/Bulk Edit | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
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)
#2
@
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' );
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)Thanks