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

buddypress-trac noreply at wordpress.org
Tue Mar 7 04:28:15 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:"13433" 13433]:
 #!CommitTicketReference repository="" revision="13433"
 BP Rewrites: Introduce the `bp_members_get_user_url()` function

 As many member URLs are built concatenating `bp_core_get_user_domain()`
 with URL chunks, the safer way to make sure developers update the way they
 build their member URLs in favor of using BP Rewrites is:
 1. to deprecate this function
 2. create a new function `bp_members_get_user_url()` which is a wrapper of
 3. replace all `bp_core_get_user_domain()` occurrences by

 This commit also deprecates `bp_core_get_username()` in favor of the new
 `bp_members_get_user_slug()` function and updates PHPUnit tests.

 Props r-a-y, johnjamesjacoby, boonebgorges

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

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

More information about the buddypress-trac mailing list