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

buddypress-trac noreply at wordpress.org
Wed Mar 1 08:17:17 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:"13432" 13432]:
 #!CommitTicketReference repository="" revision="13432"
 BP Rewrites: introduce the `bp_rewrites_get_url()` function

 Its role is to build **every** BuddyPress URL using the BP Rewrites API.

 This commit also deprecates softly some key functions like
 `bp_get_root_domain()` to let us review (thanks to deprecated notices) all
 BuddyPress links during 12.0 development cycle and make them use the
 introduced `bp_rewrites_get_url()` function or a wrapper of it. Once all
 replacements achieved, we'll need to fully deprecate:
 - `bp_get_root_domain()`
 - `bp_root_domain()`
 - `bp_core_get_root_domain()`

 Slug constants have also been completely deprecated as we will be able to
 customize every slugs from the future "URL" tab of the BuddyPress settings

 The `$bp->root_domain` BuddyPress global has been deprecated in favor of

 Finally, the Components $rewrite_ids properties are now in place and
 corresponding rewrite rules are successfully generated.

 Props r-a-y, johnjamesjacoby, boonebgorges

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

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

More information about the buddypress-trac mailing list