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: |
|
Owned by: |
|
---|---|---|---|
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [10448]) Allow plugins to provide a canonical redirect_url even if WordPress does not provide its own. props wnorris. fixes #8975 for trunk