[wp-trac] [WordPress Trac] #31665: Duplicate slugs in DB, created for hierarchical terms with long, non-latin names, when the default slug already exists

WordPress Trac noreply at wordpress.org
Tue Mar 17 11:48:46 UTC 2015


#31665: Duplicate slugs in DB, created for hierarchical terms with long, non-latin
names, when the default slug already exists
------------------------------------------+-----------------------------
 Reporter:  nevma                         |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Taxonomy                      |     Version:  4.1.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 [source:tags/4.1/src/wp-includes/post.php#L3648 wp_unique_post_slug()]
 already handles too long slugs in a multibyte-friendly way, see [23420].
 We could probably mirror some of that code in `wp_unique_term_slug()`.

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


More information about the wp-trac mailing list