[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 15:34:41 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:
-------------------------------------------+------------------------------
Changes (by subrataemfluence):

 * keywords:  needs-patch => needs-patch reporter-feedback


Comment:

 While generating a slug, option is always there to truncate (let's call
 this the __fallback__) it to the maximum allowed characters.

 Technically it sounds ok, but not sure whether its a good idea from SEO
 perspective!

 When auto-generated `truncate` is probably the best option, apart from
 throwing an error and stopping it from getting added into the database.

 Any suggestion on ''better slug generation'' would be nice!

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


More information about the wp-trac mailing list