Changeset 5811 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 02/20/2012 06:09:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r5810 r5811 202 202 if ( empty( $matches ) && bp_core_enable_root_profiles() ) { 203 203 204 // Switch field based on compat 205 $field = bp_is_username_compatibility_mode() ? 'login' : 'slug'; 206 204 207 // Make sure there's a user corresponding to $bp_uri[0] 205 if ( !empty( $bp->pages->members ) && !empty( $bp_uri[0] ) && $root_profile = get_user_by( 'login', $bp_uri[0] ) ) {208 if ( !empty( $bp->pages->members ) && !empty( $bp_uri[0] ) && $root_profile = get_user_by( $field, $bp_uri[0] ) ) { 206 209 207 210 // Force BP to recognize that this is a members page
Note: See TracChangeset
for help on using the changeset viewer.