WordPress.org

Make WordPress Core

Opened 22 months ago

Closed 2 months ago

#45760 closed defect (bug) (reported-upstream)

Tag with & not properly saved by block editor

Reported by: sterndata Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

See https://wordpress.org/support/topic/possible-tag-bug

I'm unable to add at tag to a post when the tag has an ampersand in it.

Otto says:

I don't get an error, but I do have to save it twice for some reason. When I hit enter, the tag gets saved to the database, but shortly disappears from the field. Reentering it makes it show up in the quick selection, and selecting that actually puts the tag on the post

In the database, the term is actually saved as "a & z". I think that disconnect between the entered tag and the one created to the database is confusing to the editor code which is why it disappears. When I reenter it, it fetchs from the DB with the amp; and now it's correct.

Change History (3)

#1 @sterndata
22 months ago

  • Summary changed from Tag with & not proprly saved by block editor to Tag with & not properly saved by block editor

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


2 months ago

#3 @peterwilsoncc
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

@sterndata

Block editor issues are discussed on GitHub in the Gutenberg repository.

An issue for this has already been reported and fixed so I am going to close this as reported upstream. You can review the issue at https://github.com/WordPress/gutenberg/issues/12832

Note: See TracTickets for help on using tickets.