id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 21112,Add pre_wp_unique_post_slug to override post slug handling,coffee2code,pento,"As originally [http://core.trac.wordpress.org/ticket/20480#comment:4 proposed] in the comments of #20480 (and in fact further back in a [http://core.trac.wordpress.org/ticket/14111#comment:4 comment] for #14111), a `pre_wp_unique_post_slug` filter early in `wp_unique_post_slug()`could be useful and justified for some use cases rather than relying on the existing and late-firing `wp_unique_post_slug` filter for a couple reasons: * `wp_unique_post_slug()` (and thus this new filter) is not high use, so won't impact performance * `wp_unique_post_slug()` performs database queries (perhaps repeatedly until a unique slug is found), fires other filters, etc, all of which may be rendered moot if a hooking function's intent is to fully implement its own slug generation/handling logic. The pre slug could short-circuit that unnecessary effort. The attached patch introduces the new filter in addition to adding related phpDocs.",enhancement,closed,normal,5.1,Permalinks,3.4,normal,fixed,has-patch has-dev-note,,