Opened 11 years ago
Closed 11 years ago
#25215 closed defect (bug) (fixed)
Filter docs for wp_redirect()
Reported by: | DrewAPicture | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Inline Docs | Keywords: | has-patch |
Focuses: | Cc: |
Description
In [16847] we added exit
calls after most instances of wp_redirect()
in core. This in-effect rendered it impossible to "cancel" most core redirects via the wp_redirect
filter because the exit is executed whether the redirect was successful or not. See #25207.
The attached patch adds doc blocks for the two filters in wp_redirect()
, removing the "cancel" comment on returning false for no location.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 25230: