[wp-trac] [WordPress Trac] #44525: Adding non-hierachical terms containing a comma, breaks tags-box autocompletion

WordPress Trac noreply at wordpress.org
Thu Jul 5 23:17:29 UTC 2018


#44525: Adding non-hierachical terms containing a comma, breaks tags-box
autocompletion
--------------------------------------------+-----------------------------
 Reporter:  enrico.sorcinelli               |      Owner:  (none)
     Type:  defect (bug)                    |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  Taxonomy                        |    Version:  trunk
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list