[wp-trac] [WordPress Trac] #59766: Custom post type archive URLs are being resolved in an unexpected way if a page with the same slug exists and the URL's casing doesn't exactly match the custom post type's rewrite slug
WordPress Trac
noreply at wordpress.org
Wed Jan 17 21:24:29 UTC 2024
#59766: Custom post type archive URLs are being resolved in an unexpected way if a
page with the same slug exists and the URL's casing doesn't exactly match
the custom post type's rewrite slug
-------------------------------+------------------------------
Reporter: nonverbla | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 6.3.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+------------------------------
Comment (by jrf):
As a question about this ticket was posted on Slack, I'm reposting my
reply from Slack here:
> To be honest, as the handling like that has been in WP for a long time,
changing it to be case-insensitive could be a breaking change.
>
> It would need a thorough investigation of how taxonomies are handled
throughout Core, as if there is any chance at all that multiple taxonomies
could be registered using the same keyword but in a different case, even
if only via a plugin, this will break sites.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59766#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list