WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 5 months ago

#13041 new defect (bug)

Canonical redirection will redirect a non-exitant page to a post.

Reported by: dd32 Owned by: markjaquith
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Canonical Keywords: needs-refresh
Focuses: Cc:

Description

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.

Attachments (1)

12601.2.diff (963 bytes) - added by dd32 5 years ago.

Download all attachments as: .zip

Change History (4)

@dd325 years ago

comment:1 @hakre4 years ago

Patch still applies clean. It's in wp-includes/

comment:2 @nacin4 years ago

  • Milestone changed from Awaiting Triage to Future Release

comment:3 @chriscct75 months ago

  • Keywords needs-refresh added; has-patch needs-testing removed
Note: See TracTickets for help on using tickets.