#8923 closed enhancement (fixed)
BP Rewrites: Optimize code to build URLs
| Reported by: | imath | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0.0 |
| Component: | Core | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: |
Description
In #4954 the bp_members_get_path_chunks() & bp_groups_get_path_chunks() functions were introduced after the bp_rewrites_get_slug() one. These two functions are more convenient to use than building an associative array in which the bp_rewrites_get_slug() is used to make sure slugs are customized. They simply accept a regular array containing URL chunks. Let's use these two first functions more and bp_rewrites_get_slug() a lot less.
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)
BP Rewrites: Optimizing code to build URLs
Use less the
bp_rewrites_get_slug()function and more thebp_members_get_path_chunks()&bp_groups_get_path_chunks()onesTrac ticket: https://buddypress.trac.wordpress.org/ticket/8923