[wp-trac] [WordPress Trac] #35752: Quote in term name create duplicat term

WordPress Trac noreply at wordpress.org
Fri Feb 5 10:43:38 UTC 2016


#35752: Quote in term name create duplicat term
---------------------------+------------------------------
 Reporter:  nicolasrenard  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Taxonomy       |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by nicolasrenard):

 Same issue in back-office :
 - add termok end term'ok as name in a taxonomy
 - add again termok: an error is displayed for term already exists
 - add again term'ok: a new term is added with same name

 Replying to [ticket:35752 nicolasrenard]:
 > When you use wp_insert_term function and term has quote in his name. It
 creates duplicate term.
 >
 > To reproduce the issue:
 >
 > Create term with wp_insert_term( "test d'un terme", "your-taxonomy-slug"
 )
 >
 > Each time the function is called a new term will be created.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35752#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list