[buddypress-trac] [BuddyPress Trac] #4954: Migrate BP's custom URI parser to use WP's Rewrite API

buddypress-trac noreply at wordpress.org
Tue Apr 4 01:06:11 UTC 2023


#4954: Migrate BP's custom URI parser to use WP's Rewrite API
--------------------------------------+-----------------------
 Reporter:  boonebgorges              |       Owner:  imath
     Type:  enhancement               |      Status:  assigned
 Priority:  high                      |   Milestone:  12.0.0
Component:  Route Parser              |     Version:
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+-----------------------

Comment (by imath):

 In [changeset:"13446" 13446]:
 {{{
 #!CommitTicketReference repository="" revision="13446"
 Use the BP Rewrites API to generate single Groups item links
 - Introduce the `bp_groups_get_path_chunks()` function to build BP
 Rewrites arguments using a regular array.
 - Improve `bp_members_get_path_chunks()` so that it avoids looking for a
 custom slug when the chunk is a numeric value.
 - Introduce the `bp_get_group_manage_url()` function to build Group's
 front-end Admin URLs using BP Rewrites.
 - Deprecate `bp_group_admin_permalink()` &
 `bp_get_group_admin_permalink()` in favor of `bp_group_manage_url()` &
 `bp_get_group_manage_url()`.
 - Replace all remaining usage of `bp_get_group_permalink()` in favor of
 `bp_get_group_url()` or `bp_get_group_manage_url()`.

 Props r-a-y, johnjamesjacoby, boonebgorges

 Closes https://github.com/buddypress/buddypress/pull/81
 See #4954
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4954#comment:74>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list