[wp-trac] [WordPress Trac] #13459: Conflict between post and page slugs/permalinks when permalink setting is set to /%postname%/
WordPress Trac
noreply at wordpress.org
Tue Dec 8 03:32:54 UTC 2015
#13459: Conflict between post and page slugs/permalinks when permalink setting is
set to /%postname%/
--------------------------+-----------------------------
Reporter: jamescollins | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Permalinks | Version: 2.9.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by ericlewis):
* keywords: has-patch needs-refresh => has-patch
Comment:
I've added a few changes in attachment:13459.3.diff.
* Consolidate the checks into a single query rather than two. The extra
check we want to perform is to confirm uniqueness across more post types,
which we can do with an `IN`.
* Avoid post and attachment slug collisions
[https://core.trac.wordpress.org/ticket/13459#comment:37 as Sergey
suggested].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13459#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list