[wp-trac] [WordPress Trac] #20783: Add filter to wp_unique_term_slug()

WordPress Trac noreply at wordpress.org
Thu Jun 18 13:19:15 UTC 2015


#20783: Add filter to wp_unique_term_slug()
-------------------------------------+---------------------------
 Reporter:  bolo1988                 |       Owner:  boonebgorges
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.3
Component:  Taxonomy                 |     Version:  3.3.2
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32837"]:
 {{{
 #!CommitTicketReference repository="" revision="32837"
 Add filters to `wp_unique_term_slug()`.

 This changeset adds two new filters:
 * 'wp_unique_term_slug_is_bad_slug' lets developers control whether a test
 slug needs to be made unique, before the queries required to build a
 suffix are performed.
 * 'wp_unique_term_slug' filters the output of the function.

 These changes introduce parity with the filters in
 `wp_unique_post_slug()`.

 Props coffee2code, bolo1988, boonebgorges.
 Fixes #20783.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20783#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list