Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/19/2010 09:51:12 AM (14 years ago)
Author:
apeatling
Message:

Fixes issues with displaying profiles when the user_username and user_nicename are different values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-catchuri.php

    r2695 r2856  
    104104        if ( ( $bp_uri[0] == BP_MEMBERS_SLUG && !empty( $bp_uri[1] ) ) || in_array( 'wp-load.php', $bp_uri ) ) {
    105105            // 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] );
    107110
    108111            unset($bp_uri[0]);
     
    118121
    119122            // 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] );
    121127
    122128            unset($bp_uri[0]);
Note: See TracChangeset for help on using the changeset viewer.