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-activity/bp-activity-functions.php

    r4621 r4628  
    7070    if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {
    7171        foreach( (array)$usernames as $username ) {
    72             if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     72            if ( bp_is_username_compatibility_mode() )
    7373                $user_id = username_exists( $username );
    7474            else
Note: See TracChangeset for help on using the changeset viewer.