#3250 closed defect (bug) (fixed)
Add filter (with cancel ability) to wp_redirect() function
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.1 |
| Severity: | normal | Keywords: | hook has-patch |
| Cc: |
Description
Patch adds a filter to the $location in wp_redirect. If $location is false after the filter, the function aborts, which means that a filter would be able to cancel a given redirect.
While writing a plugin today, I happened upon a circumstance where this would have been very useful.
Attachments (1)
Change History (3)
markjaquith — 7 years ago
comment:2
markjaquith — 7 years ago
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Patch for trunk