[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:31:38 UTC 2010
#14111: wp_unique_post_slug() doesn't have a filter
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: lowest | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: trivial | Keywords:
--------------------------+-------------------------------------------------
Changes (by Viper007Bond):
* priority: normal => lowest
* severity: normal => trivial
Comment:
Replying to [comment:1 Viper007Bond]:
> `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).
The `editable_slug` filter solves that by the way, but it'd still be
better/easier if `wp_unique_post_slug()` just had it's own filter. :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14111#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list