[wp-trac] [WordPress Trac] #21970: 404 error when a post has the same slug as with a deleted (trash) page.
WordPress Trac
noreply at wordpress.org
Wed Oct 17 08:32:32 UTC 2012
#21970: 404 error when a post has the same slug as with a deleted (trash) page.
--------------------------+------------------------------
Reporter: janintia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.4.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by kovshenin):
In [http://core.trac.wordpress.org/attachment/ticket/21970/21970.diff
21970.diff], verifying that the page has a visible post status (public,
private or protected). I first thought of checking against the `read_post`
cap, but that might create a really confusing scenario, where a logged in
user will see the page, while a logged out user will see the post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21970#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list