[wp-trac] [WordPress Trac] #13041: Canonical redirection will redirect a non-exitant page to a post.
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 18 06:14:20 UTC 2010
#13041: Canonical redirection will redirect a non-exitant page to a post.
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner: markjaquith
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Canonical | Version: 3.0
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
Following on from #12601
Canonical redirection will kick in for http://localhost/wordpress-
commit/apage/something and redirect it to http://localhost/wordpress-
commit/2010/02/13/something-else/
#12601 limited redirect_guess_404_permalink() to only searching in the
same post_type if one was provided, for posts and pages however, which are
builtin, these vars are not set.
I'm attaching a patch which will prevent a Page -> Post redirection, but
not the other way around. - this patch was originally added to the other
ticket.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13041>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list