Skip to:
Content

BuddyPress.org

Changeset 3233


Ignore:
Timestamp:
09/07/2010 12:59:40 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2618 (1.2 branch) props mdawaffe

File:
1 edited

Legend:

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

    r3219 r3233  
    116116            // We are within a member page, set up user id globals
    117117            if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
    118                 $displayed_user_id = bp_core_get_userid( $bp_uri[1] );
     118                $displayed_user_id = bp_core_get_userid( urldecode( $bp_uri[1] ) );
    119119            else
    120                 $displayed_user_id = bp_core_get_userid_from_nicename( $bp_uri[1] );
    121 
    122             unset($bp_uri[0]);
    123             unset($bp_uri[1]);
     120                $displayed_user_id = bp_core_get_userid_from_nicename( urldecode( $bp_uri[1] ) );
     121
     122            unset( $bp_uri[0] );
     123            unset( $bp_uri[1] );
    124124
    125125            // Reset the keys by merging with an empty array
     
    133133            // We are within a member page, set up user id globals
    134134            if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
    135                 $displayed_user_id = bp_core_get_userid( $bp_uri[0] );
     135                $displayed_user_id = bp_core_get_userid( urldecode( $bp_uri[0] ) );
    136136            else
    137                 $displayed_user_id = bp_core_get_userid_from_nicename( $bp_uri[0] );
    138 
    139             unset($bp_uri[0]);
     137                $displayed_user_id = bp_core_get_userid_from_nicename( urldecode( $bp_uri[0] ) );
     138
     139            unset( $bp_uri[0] );
    140140
    141141            // Reset the keys by merging with an empty array
Note: See TracChangeset for help on using the changeset viewer.