[wp-trac] [WordPress Trac] #36849: Filter to limit length of post slug (filter for _truncate_post_slug)

WordPress Trac noreply at wordpress.org
Mon May 16 14:57:15 UTC 2016


#36849: Filter to limit length of post slug (filter for _truncate_post_slug)
-------------------------------+------------------------------
 Reporter:  wp-entwickler.at   |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.5.2
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * type:  feature request => enhancement
 * component:  Formatting => Posts, Post Types


Comment:

 Hey there,

 Welcome to WordPress Trac and thanks for creating this ticket!

 Note: `_truncate_post_slug()` is marked as being private and thus should
 not contain any filters. Instead, a filter for limiting the slug length
 would need to be added to `wp_unique_post_slug()`. Though I don't see why
 this isn't already possible using the `wp_unique_post_slug`.

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


More information about the wp-trac mailing list