Skip to:

Opened 4 years ago

Closed 4 years ago

#2777 closed defect (fixed)

Add filter to $redirect in bbp_check_user_edit()

Reported by: johnjamesjacoby Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.1
Component: Component - Users Keywords:


Currently the bbp_check_user_edit() function does not allow the $redirect destination to be filtered, and adding a filter to it would make it more flexible. One possible use-case is BuddyPress integration, where the member profile may trump the forum one.

Change History (1)

#1 @johnjamesjacoby
4 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5657:

Users: Update bbp_check_user_edit():

  • Update @uses in docblock
  • Add filters to allow overriding result & redirect_to URL
  • Bail instead of indent
  • Move bbp_get_displayed_user_id() into reusable variable

Fixes #2777.

Note: See TracTickets for help on using tickets.