Opened 17 months ago
Closed 17 months ago
#8884 closed defect (bug) (fixed)
The Array Argument of `bp_displayed_user_url()` needs to include specific keys
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 12.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Members | Keywords: | has-patch |
Cc: |
Description
These specific keys are:
array( 'single_item_component' => '', 'single_item_action' => '', 'single_item_action_variables' => '', );
The bp_members_get_path_chunks()
helper function can be used to use a regular array and have it converted to the above array (making sure slugs can be customized).
During the BP Rewrites merge process (#4954), this function was misused eight times.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Use
bp_members_get_path_chunks()
to build URL path slugs.Trac ticket: https://buddypress.trac.wordpress.org/ticket/8884