[wp-trac] [WordPress Trac] #18962: Allow duplicate slugs for different content
WordPress Trac
noreply at wordpress.org
Wed Jul 23 10:09:30 UTC 2014
#18962: Allow duplicate slugs for different content
-------------------------------------+-----------------------------
Reporter: maorb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Rewrite Rules | Version: trunk
Severity: major | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Changes (by jpswade):
* keywords: needs-unit-tests has-patch needs-testing => has-patch needs-
testing
* version: => trunk
* type: enhancement => defect (bug)
* severity: normal => major
Comment:
Upgrading this to a bug.
As per [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/post.php post.php]:
{{{
Page slugs must be unique within their own trees. Pages are in a separate
namespace than posts so page slugs are allowed to overlap post slugs.
}}}
It's fair to say that media, tags, custom post types, link categories,
posts and pages are different "trees".
I've upgraded this to 'major' severity due to the effect it can have on
URL structure, which could potentially have a detrimental effect to a site
if a slug points to the wrong place.
I've explored the 'tests' looking for the word 'slug', yet this yields no
results, therefore the lack of unit test is not one created by this issue
and therefore should not be addressed by this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18962#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list