[wp-trac] [WordPress Trac] #14111: wp_unique_post_slug() doesn't have a filter
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 27 07:30:00 UTC 2010
#14111: wp_unique_post_slug() doesn't have a filter
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by Viper007Bond):
I'm currently using a `wp_insert_post_data` filter to re-set the slug to
what I want it to be (a number) and it works fine, but
`get_sample_permalink()` runs the slug through `wp_unique_post_slug()`
which makes the URL displayed below the title when editing the page wrong
(it gains it's "-2" back).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14111#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list