#24969 closed defect (bug) (fixed)
wp_redirect must return true
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | trivial | Version: | 2.1 |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
Broken since r4407