#2778 closed enhancement (fixed)
Introduce bbp_redirect() to wrap wp_safe_redirect() & exit()
| Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | API | Version: | 2.0 |
| Severity: | minor | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 5658: