[buddypress-trac] [BuddyPress Trac] #8923: BP Rewrites: Optimize code to build URLs

buddypress-trac noreply at wordpress.org
Sat Jun 17 10:12:33 UTC 2023


#8923: BP Rewrites: Optimize code to build URLs
-------------------------+-------------------------
 Reporter:  imath        |      Owner:  imath
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  12.0.0
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:  needs-patch
-------------------------+-------------------------
 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8923>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list