Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#22291 closed enhancement (duplicate)

Need Hook for wp_unique_post_slug and wp unique term slug

Reported by: baernty Owned by:
Priority: normal Milestone:
Component: Permalinks Version: 3.4.2
Severity: normal Keywords:
Cc: Focuses:

Description

I use the "WP No Category Base" Plugin (http://wordpress.org/extend/plugins/wp-no-category-base/) to get prettier URLs. If I use the same slug for a category and a page i get into conflict. The URL of the page is not available anymore. It would be nice to have a check if there is a page with the same slug if I want to save a category slug.

Therefore a change of the code or a hook (to do it by myself) would be awesome!

Thanks very much!!

Change History (1)

#1 @SergeyBiryukov
14 years ago

  • Component GeneralPermalinks
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

wp_unique_post_slug() already has a set of fiters, see #14111, #15726, and #20480.

wp_unique_term_slug() part is a duplicate of #20783.

Note: See TracTickets for help on using tickets.