Opened 3 years ago
Closed 3 years 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0.0 |
| Component: | Members | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Use
bp_members_get_path_chunks()to build URL path slugs.Trac ticket: https://buddypress.trac.wordpress.org/ticket/8884