[wp-trac] [WordPress Trac] #46010: Auto-generated term slugs can be greater than 200 characters, giving "Could not insert term into the database." error

WordPress Trac noreply at wordpress.org
Wed Jan 16 16:11:44 UTC 2019


#46010: Auto-generated term slugs can be greater than 200 characters, giving "Could
not insert term into the database." error
-------------------------------------------+------------------------------
 Reporter:  mikejolley                     |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Taxonomy                       |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------

Comment (by mikejolley):

 > Any suggestion on better slug generation would be nice!

 If it cannot prefix the parent term due to length, could it not just
 append -2, -3 etc. Obviously it's not ideal, but it's better than and
 error message, and the end-user can edit it if needed manually.

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


More information about the wp-trac mailing list