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

buddypress-trac noreply at wordpress.org
Sat Feb 25 09:01:39 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 prbot):

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/69 PR #69] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/imath/ @imath].''
 It introduces the `bp_rewrites_get_url()` function. Its role is to build
 every BuddyPress URL using the BP Rewrites API.

 It also deprecates softly some key functions like `bp_get_root_domain()`
 to let us review all BP links during 12.0 development cycle and make them
 use the `bp_rewrites_get_url()` function or a wrapper of it.

 It also deprecates slug constant as we will be able to customize every
 slugs from the future "URL" tab of BuddyPress settings page.

 It puts the Components `$rewrite_ids` in place and deprecates the
 `$root_domain` BP global.

 This PR will soon be completed with Unit tests for the
 `bp_rewrites_get_url()` function.

 Trac ticket: https://buddypress.trac.wordpress.org/ticket/4954

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


More information about the buddypress-trac mailing list