Skip to:
Content

BuddyPress.org

Changeset 2742


Ignore:
Timestamp:
02/18/2010 06:50:35 PM (16 years ago)
Author:
apeatling
Message:

Move DB version checks back to checking the DB instead of pre-fetched site options. Fixes #1947

Location:
branches/1.2
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r2738 r2742  
    9494        global $wpdb, $bp;
    9595
    96         if ( $bp->site_options['bp-activity-db-version'] < BP_ACTIVITY_DB_VERSION )
     96        if ( get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_DB_VERSION )
    9797                bp_activity_install();
    9898}
  • branches/1.2/bp-blogs.php

    r2738 r2742  
    8181        if ( is_site_admin() && bp_core_is_multisite() ) {
    8282                /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    83                 if ( $bp->site_options['bp-blogs-db-version'] < BP_BLOGS_DB_VERSION )
     83                if ( get_site_option( 'bp-blogs-db-version' ) < BP_BLOGS_DB_VERSION )
    8484                        bp_blogs_install();
    8585        }
  • branches/1.2/bp-core.php

    r2738 r2742  
    267267
    268268        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    269         if ( $bp->site_options['bp-core-db-version'] < BP_CORE_DB_VERSION )
     269        if ( get_site_option( 'bp-core-db-version' ) < BP_CORE_DB_VERSION )
    270270                bp_core_install();
    271271}
     
    15601560
    15611561        $options = apply_filters( 'bp_core_site_options', array(
    1562                 'bp-core-db-version',
    1563                 'bp-activity-db-version',
    1564                 'bp-blogs-db-version',
    1565                 'bp-friends-db-version',
    1566                 'bp-groups-db-version',
    1567                 'bp-messages-db-version',
    1568                 'bp-xprofile-db-version',
    15691562                'bp-deactivated-components',
    15701563                'bp-blogs-first-install',
  • branches/1.2/bp-friends.php

    r2738 r2742  
    5757
    5858        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    59         if ( $bp->site_options['bp-friends-db-version'] < BP_FRIENDS_DB_VERSION )
     59        if ( get_site_option( 'bp-friends-db-version' ) < BP_FRIENDS_DB_VERSION )
    6060                friends_install();
    6161}
  • branches/1.2/bp-groups.php

    r2738 r2742  
    109109function groups_check_installed() {
    110110        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    111         if ( $bp->site_options['bp-groups-db-version'] < BP_GROUPS_DB_VERSION )
     111        if ( get_site_option( 'bp-groups-db-version' ) < BP_GROUPS_DB_VERSION )
    112112                groups_install();
    113113}
  • branches/1.2/bp-loader.php

    r2731 r2742  
    2222do_action( 'bp_core_loaded' );
    2323
    24 /* Activity Streams */
    25 if ( !isset( $bp_deactivated['bp-activity.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-activity.php') )
    26         include( BP_PLUGIN_DIR . '/bp-activity.php' );
     24// /* Activity Streams */
     25// if ( !isset( $bp_deactivated['bp-activity.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-activity.php') )
     26//      include( BP_PLUGIN_DIR . '/bp-activity.php' );
    2727
    28 /* Blog Tracking */
    29 if ( !isset( $bp_deactivated['bp-blogs.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-blogs.php') )
    30         include( BP_PLUGIN_DIR . '/bp-blogs.php' );
     28// /* Blog Tracking */
     29// if ( !isset( $bp_deactivated['bp-blogs.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-blogs.php') )
     30//      include( BP_PLUGIN_DIR . '/bp-blogs.php' );
    3131
    32 /* bbPress Forum Integration */
    33 if ( !isset( $bp_deactivated['bp-forums.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-forums.php') )
    34         include( BP_PLUGIN_DIR . '/bp-forums.php' );
     32// /* bbPress Forum Integration */
     33// if ( !isset( $bp_deactivated['bp-forums.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-forums.php') )
     34//      include( BP_PLUGIN_DIR . '/bp-forums.php' );
    3535
    36 /* Friend Connections */
    37 if ( !isset( $bp_deactivated['bp-friends.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-friends.php') )
    38         include( BP_PLUGIN_DIR . '/bp-friends.php' );
     36// /* Friend Connections */
     37// if ( !isset( $bp_deactivated['bp-friends.php'] ) && file_exists( BP_PLUGIN_DIR . '/bp-friends.php') )
     38//      include( BP_PLUGIN_DIR . '/bp-friends.php' );
    3939
    4040/* Groups Support */
  • branches/1.2/bp-messages.php

    r2738 r2742  
    9292
    9393        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    94         if ( $bp->site_options['bp-messages-db-version'] < BP_MESSAGES_DB_VERSION )
     94        if ( get_site_option( 'bp-messages-db-version' ) < BP_MESSAGES_DB_VERSION )
    9595                messages_install();
    9696}
  • branches/1.2/bp-xprofile.php

    r2738 r2742  
    156156
    157157        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    158         if ( $bp->site_options['bp-xprofile-db-version'] < BP_XPROFILE_DB_VERSION )
     158        if ( get_site_option( 'bp-xprofile-db-version' ) < BP_XPROFILE_DB_VERSION )
    159159                xprofile_install();
    160160}
Note: See TracChangeset for help on using the changeset viewer.