#2778 closed enhancement (fixed)
Introduce bbp_redirect() to wrap wp_safe_redirect() & exit()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | minor | Version: | 2.0 |
Component: | API | Keywords: | |
Cc: |
Description
Since all of bbPress's redirects happen theme-side, we use wp_safe_redirect()
everywhere, and in 50+ locations. We also need to remember to exit()
when doing so, which isn't difficult, but has caused bugs in the past.
BuddyPress uses bp_core_redirect()
for this, and it has worked very well at preventing the introduction of new bugs surrounding redirection.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 5658: