Skip to:
Content

BuddyPress.org

Changeset 4000 for trunk/bp-loader.php


Ignore:
Timestamp:
02/02/2011 06:06:33 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Cast database_versions as int to ensure proper calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r3994 r4000  
    1818// Define the database version
    1919if ( !defined( 'BP_DB_VERSION' ) )
    20     define( 'BP_DB_VERSION', 3605 );
     20    define( 'BP_DB_VERSION', 3706 );
    2121
    2222// Place your custom code (actions/filters) in a file called
     
    6565
    6666// An update is required
    67 } elseif ( $bp->database_version < constant( 'BP_DB_VERSION' ) ) {
     67} elseif ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) ) {
    6868    $bp->maintenence_mode = 'update';
    6969    require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );
Note: See TracChangeset for help on using the changeset viewer.