Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 06:58:45 PM (13 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-functions.php

    r4602 r4628  
    12001200}
    12011201
     1202/**
     1203 * Are we running username compatibility mode?
     1204 *
     1205 * @package BuddyPress
     1206 * @since 1.3
     1207 *
     1208 * @uses apply_filters() Filter 'bp_is_username_compatibility_mode' to alter
     1209 * @return bool False when compatibility mode is disabled (default); true when enabled
     1210 */
     1211function bp_is_username_compatibility_mode() {
     1212    return apply_filters( 'bp_is_username_compatibility_mode', defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) && BP_ENABLE_USERNAME_COMPATIBILITY_MODE );
     1213}
    12021214
    12031215/** Global Manipulators *******************************************************/
Note: See TracChangeset for help on using the changeset viewer.