[wp-trac] [WordPress Trac] #55125: HTML tags in post titles are gone when editing existing posts

WordPress Trac noreply at wordpress.org
Wed Feb 9 11:34:25 UTC 2022


#55125: HTML tags in post titles are gone when editing existing posts
--------------------------+-----------------------------
 Reporter:  rotti         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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:

 1. Create a new post with HTML-Tags in the title for example: "<em>This is
 my title</em>"
 2. Save and publish the post with this title
 3. Go back to the "All posts" list
 4. Post is correctly displayed with "<em>This is my title</em>" in the
 list (also the "Quick Edit"-Functionality correctly displays the
 <em>-Tags)
 5. Edit the post
 6. The post title lost the <em>-Tags
 7. Change the post title to "This is my title 2"
 8. Save the post
 9. <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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55125>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list