Make WordPress Core

Opened 2 weeks ago

#44525 new defect (bug)

Adding non-hierachical terms containing a comma, breaks tags-box autocompletion

Reported by: enrico.sorcinelli Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Taxonomy Keywords:
Focuses: ui, javascript, administration Cc:


I searched over tickets archive but apparently I couldn't find a similar one.

To reproduce in UI:

  • Create/edit a term in a non-hierarchical taxonomy (by edit-tags.php/term.php), inserting a comma inside the name.
  • In the tags boxes of post edit screen, search and select inserted term.
  • By adding the term and update the post, two (or more) terms will be created if they don't exist and then will be associated to the post.

This also happens similarly on quick/bulk edit after applying changes.

Gutenberg don't seems to be affected.

After a quick look, the patch is not as simple as it may seem. The comma is used as term separator in input value attribute, so It's not directly possible to escape it.

Change History (0)

Note: See TracTickets for help on using tickets.