Opened 13 years ago
Closed 13 years ago
#25215 closed defect (bug) (fixed)
Filter docs for wp_redirect()
| Reported by: | DrewAPicture | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Inline Docs | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 25230: