Changeset 4794 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 07/22/2011 01:45:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r4775 r4794 17 17 global $bp; 18 18 19 // Ensure that we have access to some utility functions 20 require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 19 // Ensure that we have access to some utility functions. Must use require_once() 20 // because BP Core is loaded during incremental upgrades 21 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 21 22 22 23 // Get current DB version … … 585 586 return false; 586 587 587 require( ABSPATH . WPINC . '/plugin.php' );588 588 $installed_plugins = get_plugins(); 589 589 $installed_themes = get_themes(); … … 1019 1019 1020 1020 // Load BP and hook the admin menu, so that the redirect is successful 1021 require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );1022 1021 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-admin.php' ); 1023 1022 bp_core_add_admin_menu(); … … 1261 1260 * @return array $page_ids 1262 1261 */ 1263 function bp_core_update_get_page_meta() { 1264 require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 1265 1262 function bp_core_update_get_page_meta() { 1266 1263 if ( !$page_ids = bp_get_option( 'bp-pages' ) ) 1267 1264 $page_ids = array();
Note: See TracChangeset
for help on using the changeset viewer.