Skip to:
Content

BuddyPress.org

Changeset 3300 for trunk/bp-loader.php


Ignore:
Timestamp:
10/24/2010 09:22:29 PM (16 years ago)
Author:
djpaul
Message:

Fixed #2676

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r3282 r3300  
    77Version: 1.3-bleeding
    88Author URI: http://buddypress.org/community/members/
     9Network: true
    910*/
    1011
     
    6162                include( BP_PLUGIN_DIR . '/bp-xprofile.php' );
    6263
    63         /**
    64         * bp_loaded()
    65         *
    66         * Allow dependent plugins and core actions to attach themselves in a safe way.
    67         *
    68         * See bp-core.php for the following core actions:
    69         *      - bp_init|bp_setup_globals|bp_setup_root_components|bp_setup_nav|bp_register_widgets
    70         */
    71         function bp_loaded() {
    72                 do_action( 'bp_loaded' );
    73         }
    7464        add_action( 'plugins_loaded', 'bp_loaded', 20 );
     65}
     66
     67/**
     68* bp_loaded()
     69*
     70* Allow dependent plugins and core actions to attach themselves in a safe way.
     71*
     72* See bp-core.php for the following core actions:
     73*      - bp_init|bp_setup_globals|bp_setup_root_components|bp_setup_nav|bp_register_widgets
     74*/
     75function bp_loaded() {
     76        do_action( 'bp_loaded' );
    7577}
    7678
     
    8486                switch_theme( 'bp-default', 'bp-default' );
    8587
     88        /* Install site options on activation */
     89        //TODO: Find where to put this back. Here is no good because bp-core.php isn't loaded on new installation.
     90        //bp_core_activate_site_options( array( 'bp-disable-account-deletion' => 0, 'bp-disable-avatar-uploads' => 0, 'bp-disable-blogforum-comments' => 0,  'bp-disable-forum-directory' => 0,  'bp-disable-profile-sync' => 0 ) );
     91
    8692        do_action( 'bp_loader_activate' );
    8793}
     
    9399                return false;
    94100
     101        delete_site_option( 'bp-core-db-version' );
     102        delete_site_option( 'bp-activity-db-version' );
     103        delete_site_option( 'bp-blogs-db-version' );
     104        delete_site_option( 'bp-friends-db-version' );
     105        delete_site_option( 'bp-groups-db-version' );
     106        delete_site_option( 'bp-messages-db-version' );
     107        delete_site_option( 'bp-xprofile-db-version' );
    95108        delete_site_option( 'bp-deactivated-components' );
    96109        delete_site_option( 'bp-blogs-first-install' );
Note: See TracChangeset for help on using the changeset viewer.