#55125 closed defect (bug) (reported-upstream)
HTML tags in post titles are gone when editing existing posts
Reported by: | rotti | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.9 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
Hello,
since the update to wordpress 5.9 we've detected some strange behavior, when editing existing posts, that contains HTML-Tags in their post title.
The problem is, when editing the post, the HTML-Tags in the post title, are not displayed in the editor. The tags are just gone.
Steps to reproduce:
- Create a new post with HTML-Tags in the title for example: "<em>This is my title</em>"
- Save and publish the post with this title
- Go back to the "All posts" list
- Post is correctly displayed with "<em>This is my title</em>" in the list (also the "Quick Edit"-Functionality correctly displays the <em>-Tags)
- Edit the post
- The post title lost the <em>-Tags
- Change the post title to "This is my title 2"
- Save the post
- <em>-Tags are totally gone, even in the "All posts" list.
The behavior came through wordpress 5.9, i’ve quickly tested the issue with a complete new and empty 5.8.3 version and a complete new and empty 5.9 version. In the 5.8.3 this behavior is not reproducable, in the 5.9 it is. I’ve used the official docker images for that wordpress:5.8.3 and wordpress:latest, completely new setup without any plugins or custom themes.
I've already created a topic in the forums, where i got the info to create a bug ticket here:
https://wordpress.org/support/topic/html-tags-in-post-titles-are-gone-when-editing-existing-posts/
If it is necessary i can also provide some screenshots, but i think the problem should be clear.
Best regards
Christoph
Change History (7)
#2
@
3 years ago
Hi @azouamauriac,
thanks for this information. I've created a github issue at https://github.com/WordPress/gutenberg/issues/38668 in the Gutenberg project.
Hi there welcome to the trac! thank you for the report. I'm able to reproduce issue and I think this is related Gutenberg so would you like to report the issue here https://github.com/WordPress/gutenberg/issues/new/choose ?
Thank you.