#24969 closed defect (bug) (fixed)
wp_redirect must return true
| Reported by: | tivnet | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | General | Version: | 2.1 |
| Severity: | trivial | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
A code like this one
if(wp_redirect('/', 301)){
error_log('redirected');
}
won't work because in the case of success, wp_redirect returns NULL, while it must return a boolean value (true if all was OK)
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Broken since r4407