Can't access original slug with wp_unique_post_slug filter
|Reported by:||bradyvercher||Owned by:||nacin|
This is a follow up to #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.
Change History (9)
comment:1 johnbillion — 19 months ago
- Severity changed from trivial to normal
- Type changed from enhancement to defect (bug)
- Version changed from 3.3.1 to 3.3
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed