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

buddypress-trac noreply at wordpress.org
Sat Mar 4 23:27:48 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/70 PR #70] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/imath/ @imath].''
 `bp_members_get_user_url()` is a wrapper of `bp_rewrites_get_url()`. It
 replaces `bp_core_get_user_domain()` to build Member URLs using BP
 Rewrites.

 As many 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 BuddyPress links is to deprecate this function.
 `bp_core_get_username()` has also been deprecated in favor of
 `bp_members_get_user_slug()`.

 This PR also updates some PHPUnit tests!

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

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


More information about the buddypress-trac mailing list