[wp-trac] [WordPress Trac] #21112: Add pre_wp_unique_post_slug to override post slug handling
WordPress Trac
noreply at wordpress.org
Tue Jan 8 03:47:03 UTC 2019
#21112: Add pre_wp_unique_post_slug to override post slug handling
-------------------------+---------------------
Reporter: coffee2code | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.1
Component: Permalinks | Version: 3.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+---------------------
Changes (by pento):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"44454" 44454]:
{{{
#!CommitTicketReference repository="" revision="44454"
Permalinks: Add a `pre_wp_unique_post_slug` filter.
Returning a non-`null` value on this fillter will cause
`wp_unique_post_slug()` to return early with that value, skipping
potentially expensive database queries on some sites.
Props coffee2code, javorszky, iCaleb.
Fixes #21112.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21112#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list