Opened 16 years ago
Closed 16 years ago
#15726 closed enhancement (fixed)
Allow for "bad slugs" to be blocked in wp_unique_post_slug
| Reported by: | westi | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Posts, Post Types | Version: | 3.0.2 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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, .... ) {