Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2013 05:04:27 PM (12 years ago)
Author:
boonebgorges
Message:

Define some constants conditionally in component loaders, to remove warnings when running unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-loader.php

    r7454 r7494  
    6060        $bp = buddypress();
    6161
    62         define ( 'BP_FRIENDS_DB_VERSION', '1800' );
     62        // Deprecated. Do not use.
     63        // Defined conditionally to support unit tests.
     64        if ( ! defined( 'BP_FRIENDS_DB_VERSION' ) ) {
     65            define( 'BP_FRIENDS_DB_VERSION', '1800' );
     66        }
    6367
    6468        // Define a slug, if necessary
Note: See TracChangeset for help on using the changeset viewer.