Opened 4 years ago
Closed 4 years ago
#8975 closed defect (bug) (fixed)
redirect_canonical returns too early when redirect_url cannot be determined
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Permalinks | Version: | |
| Severity: | normal | Keywords: | has-patch |
| 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)
comment:1
markjaquith — 4 years ago
- Resolution set to fixed
- Status changed from new to closed
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