[wp-trac] [WordPress Trac] #20480: Can't access original slug with wp_unique_post_slug filter
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 18 14:26:59 UTC 2012
#20480: Can't access original slug with wp_unique_post_slug filter
--------------------------+-----------------------------
Reporter: bradyvercher | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.3.1
Severity: trivial | Keywords:
--------------------------+-----------------------------
This is a follow up to [http://core.trac.wordpress.org/ticket/14111
#14111].
The slug passed to the 'wp_unique_post_slug' filter may already be
suffixed by the time it's accessible. This requires the default suffix
algorithm to be reversed if a developer wants access to the original slug
in order to apply their own uniqueness algorithm.
It would be great if the original slug was passed as a parameter in the
current filter, or if a new filter was added before the default uniqueness
algorithms are executed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20480>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list