Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 06:58:45 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces wrapper function bp_is_username_compatibility_mode() and refactors to avoid direct constant checks throughout BP. See #3314

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r4605 r4628  
    105105        $username = bp_core_get_username( $user_id, $user_nicename, $user_login );
    106106
    107         if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     107        if ( bp_is_username_compatibility_mode() )
    108108            $username = rawurlencode( $username );
    109109
     
    242242
    243243        // Pull an audible and use the login over the nicename
    244         if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     244        if ( bp_is_username_compatibility_mode() )
    245245            $username = $user_login;
    246246        else
     
    459459 */
    460460function bp_core_get_userlink_by_username( $username ) {
    461     if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     461    if ( bp_is_username_compatibility_mode() )
    462462        $user_id = bp_core_get_userid( $username );
    463463    else
Note: See TracChangeset for help on using the changeset viewer.