1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-22 20:56:55 +08:00
buddypress/tests/phpunit/testcases/core/template
Mathieu Viet d769515ea4 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 
`bp_rewrites_get_url()`
3. replace all `bp_core_get_user_domain()` occurrences by 
`bp_members_get_user_url()`

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



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13433 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2023-03-07 04:28:08 +00:00
..
bpCreateExcerpt.php The continuing adventures of bp_create_excerpt(). 2015-06-25 18:46:16 +00:00
bpUserHasAccess.php BP Rewrites: Introduce the bp_members_get_user_url() function 2023-03-07 04:28:08 +00:00