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-core/bp-core-catchuri.php

    r4602 r4628  
    238238               
    239239                // Switch the displayed_user based on compatbility mode
    240                 if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     240                if ( bp_is_username_compatibility_mode() )
    241241                    $bp->displayed_user->id = (int) bp_core_get_userid( urldecode( $bp_uri[$uri_offset + 1] ) );
    242242                else
Note: See TracChangeset for help on using the changeset viewer.