[wp-trac] [WordPress Trac] #54521: Taxonomy term quick edit does not save if taxonomy has non latin characters

WordPress Trac noreply at wordpress.org
Wed Apr 23 14:02:48 UTC 2025


#54521: Taxonomy term quick edit does not save if taxonomy has non latin characters
-------------------------------------------------+-------------------------
 Reporter:  panagiotis.synetos                   |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Taxonomy                             |     Version:  5.8.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |  administration
-------------------------------------------------+-------------------------

Comment (by manooweb):

 It's seems that we also have issues when
 - adding a term in this kind of taxonomy
 - trying to delete a taxonomy just after adding the new term

 It was observed with WooCommerce product attribute terms.
 I described what happens in a WooCommerce issue.

 It espacially come from we can add a term in ajax because the taxonomy
 slug isn't sanitized in wp_ajax_add_tag() function before inserting the
 term.
 See https://github.com/WordPress/WordPress/blob/6.8/wp-admin/includes
 /ajax-actions.php#L1089-L1100

 WooCommerce doesn't sanitize the product attribute slug enough (sanitize
 title() instead of sanitize_key()) which causes theses issues in the terms
 screen.

 Related WooCommerce issue, maybe closed too quickly I think 🤔
 https://github.com/woocommerce/woocommerce/issues/57474

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


More information about the wp-trac mailing list