Opened 14 years ago
Closed 14 years ago
#15726 closed enhancement (fixed)
Allow for "bad slugs" to be blocked in wp_unique_post_slug
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | minor | Version: | 3.0.2 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
Depending on server configuration and rewrite configuration there are any number of slugs which won't work well for root pages.
Examples might be wp-admin, wp-content, wp-includes
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
We need to add some hooks to wp_unique_post_slug - one in each of the three branches in these lines similar to this I think:
f ( $post_name_check || in_array( $slug, $feeds ) || apply_filters( 'wp_unique_post_slug_is_bad_slug', false, .... ) {