Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#8975 closed defect (bug) (fixed)

redirect_canonical returns too early when redirect_url cannot be determined

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

Description

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 16 years ago.

Download all attachments as: .zip

Change History (2)

@wnorris
16 years ago

#1 @markjaquith
16 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.