Changeset 2856 for branches/1.2/bp-core/bp-core-catchuri.php
- Timestamp:
- 03/19/2010 09:51:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-catchuri.php
r2695 r2856 104 104 if ( ( $bp_uri[0] == BP_MEMBERS_SLUG && !empty( $bp_uri[1] ) ) || in_array( 'wp-load.php', $bp_uri ) ) { 105 105 // We are within a member page, set up user id globals 106 $displayed_user_id = bp_core_get_displayed_userid( $bp_uri[1] ); 106 if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) ) 107 $displayed_user_id = bp_core_get_userid( $bp_uri[1] ); 108 else 109 $displayed_user_id = bp_core_get_userid_from_nicename( $bp_uri[1] ); 107 110 108 111 unset($bp_uri[0]); … … 118 121 119 122 // We are within a member page, set up user id globals 120 $displayed_user_id = bp_core_get_displayed_userid( $bp_uri[0] ); 123 if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) ) 124 $displayed_user_id = bp_core_get_userid( $bp_uri[1] ); 125 else 126 $displayed_user_id = bp_core_get_userid_from_nicename( $bp_uri[1] ); 121 127 122 128 unset($bp_uri[0]);
Note: See TracChangeset
for help on using the changeset viewer.