Skip to:
Content

BuddyPress.org

Changeset 1788


Ignore:
Timestamp:
09/04/2009 05:18:21 PM (17 years ago)
Author:
apeatling
Message:

Switching user_domain for the displayed_user and loggedin_user to use user_nicename instead of user_login. This will ensure that the user_login is sanitized for characters that will not work as a slug (spaces etc). I don't think there should be any major consequences to this, but please test this as much as possible and report back any issues you find. Props markjaquith for the suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1787 r1788  
    398398    /* If we are using a members slug, include it. */
    399399    if ( !defined( 'BP_ENABLE_ROOT_PROFILES' ) )
    400         return apply_filters( 'bp_core_get_user_domain', $bp->root_domain . '/' . BP_MEMBERS_SLUG . '/' . $ud->user_login . '/' );
     400        return apply_filters( 'bp_core_get_user_domain', $bp->root_domain . '/' . BP_MEMBERS_SLUG . '/' . $ud->user_nicename . '/' );
    401401    else
    402         return apply_filters( 'bp_core_get_user_domain', $bp->root_domain . '/' . $ud->user_login . '/' );     
     402        return apply_filters( 'bp_core_get_user_domain', $bp->root_domain . '/' . $ud->user_nicename . '/' );       
    403403}
    404404
Note: See TracChangeset for help on using the changeset viewer.