[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
Thu Oct 15 17:52:38 UTC 2015
#21970: 404 error when a post has the same slug as with a deleted (trash) page.
----------------------------------------+-----------------------------
Reporter: janintia | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Permalinks | Version: 3.4.2
Severity: normal | Resolution: fixed
Keywords: 4.0-early has-patch commit | Focuses:
----------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"35205"]:
{{{
#!CommitTicketReference repository="" revision="35205"
In `WP::parse_request()` and `url_to_postid()`, don't skip objects that
have a post status with `'exclude_from_search' => false`, e.g. `inherit`.
This fixes pretty permalinks for attachments, broken in [35195].
Fixes #21970.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21970#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list