diff --git src/bp-core/bp-core-catchuri.php src/bp-core/bp-core-catchuri.php
index ada5bf9..544af90 100644
|
|
function bp_core_set_uri_globals() { |
270 | 270 | $after_member_slug = $bp_uri[ $uri_offset + 1 ]; |
271 | 271 | } |
272 | 272 | |
| 273 | /* |
| 274 | * Filters the portion of the URI immediately following the 'members' slug. |
| 275 | * |
| 276 | * @since 2.6.0 |
| 277 | * |
| 278 | * @param string $after_member_slug The portion of the URI immediately following the members |
| 279 | * slug (usually 'members'). |
| 280 | */ |
| 281 | $after_member_slug = apply_filters( 'bp_core_set_uri_globals_after_member_slug', $after_member_slug ); |
| 282 | |
273 | 283 | // Are we viewing a specific user? |
274 | 284 | if ( $after_member_slug ) { |
| 285 | |
275 | 286 | // If root profile, we've already queried for the user. |
276 | 287 | if ( $root_profile instanceof WP_User ) { |
277 | 288 | $bp->displayed_user->id = $root_profile->ID; |