Changeset 3300 for trunk/bp-loader.php
- Timestamp:
- 10/24/2010 09:22:29 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-loader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r3282 r3300 7 7 Version: 1.3-bleeding 8 8 Author URI: http://buddypress.org/community/members/ 9 Network: true 9 10 */ 10 11 … … 61 62 include( BP_PLUGIN_DIR . '/bp-xprofile.php' ); 62 63 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_widgets70 */71 function bp_loaded() {72 do_action( 'bp_loaded' );73 }74 64 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 */ 75 function bp_loaded() { 76 do_action( 'bp_loaded' ); 75 77 } 76 78 … … 84 86 switch_theme( 'bp-default', 'bp-default' ); 85 87 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 86 92 do_action( 'bp_loader_activate' ); 87 93 } … … 93 99 return false; 94 100 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' ); 95 108 delete_site_option( 'bp-deactivated-components' ); 96 109 delete_site_option( 'bp-blogs-first-install' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)