Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#8975 closed defect (bug) (fixed)

redirect_canonical returns too early when redirect_url cannot be determined

Reported by: wnorris Owned by: ryan
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Permalinks Keywords: has-patch
Focuses: Cc:


redirect_canoncial() returns if the value of $redirect_url is false, before calling the 'redirect_canonical' filter. This prevents plugins from being able to provide a proper redirect URL in the event that WordPress is unable to. The second check AFTER the hook is called should continue to check if $redirect_url is false, but the one BEFORE the hook should not.

Attachments (1)

canonical.diff (478 bytes) - added by wnorris 11 years ago.

Download all attachments as: .zip

Change History (2)

11 years ago

#1 @markjaquith
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10448]) Allow plugins to provide a canonical redirect_url even if WordPress does not provide its own. props wnorris. fixes #8975 for trunk

Note: See TracTickets for help on using tickets.