[wp-hackers] rewrite base/cpt-slug/page-slug collisions?

Jeff Lambert jeff.lambert at jvhm.com
Thu Jan 5 23:20:21 UTC 2012

I'm going to have to agree with Barrett that WordPress should be solid
enough to protect against the UI allowing such poor end-user practices where
a permalink structure can be stepped on.  One needs to remember, >95% of the
users have no technical concept about what they are doing when creating
categories or updating slugs... and how they may break things.  In a site
with multiple bloggers, one user may not be aware of what another user has
done, so it may not be bad practice on their part at all.  This said, the
likelihood of this occurring is probably not too great but still worth


On 1/5/12 2:10 PM, "Otto" <otto at ottodestruct.com> wrote:

> On Thu, Jan 5, 2012 at 2:27 PM, Barrett Golding <bg at hearingvoices.com> wrote:
>> seems like wp_unique_post_slug() should be checking not only page slugs
>> but also against some reserved terms ('category', 'tag', 'type')
>> along with any assigned rewrite bases, and registered CPT rewrite slugs.
> I would say that this is undesirable, since somebody might be relying
> on this behavior. If one had a big tree of Pages that they wanted to
> migrate into CPTs but keep the same URL structure, for example. It
> also doesn't address somebody creating a CPT with a slug after
> creating the same slugged Page.
> IMO, best way is simply to say that is not supported or undefined, and
> let people use it as they see fit.
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list