[wp-trac] [WordPress Trac] #55714: & stored as & for Post Title and Excerpt in Editor

WordPress Trac noreply at wordpress.org
Thu May 12 11:50:39 UTC 2022

#55714: & stored as & for Post Title and Excerpt in Editor
 Reporter:  kapilpaul     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |

 When an Author/other user(who have Create post permission) creates a post
 and add a post title as `Hello & Welcome to WordPress` after save the post
 the post title is stored as `Hello & Welcome to WordPress` in DB. As
 this is stored like this it is showing same in the editor. This is
 happening with Excerpt also.

 **NB: This is not happening with Admin user or if you are using Gutenberg

 Reproduce Steps:

 1. Disable your gutenberg editor and enable classic editor.
 2. Logged in as an Author.
 3. Switch to a non block based theme. (skip if your theme is not block
 4. Go to Post > Add New
 5. Add Post Title, Excerpt as `Hello & Welcome to WordPress`
 6. Save Post
 7. You will see `Hello & Welcome to WordPress` as title

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

More information about the wp-trac mailing list