Changeset 4794
- Timestamp:
- 07/22/2011 01:45:08 PM (14 years ago)
- Location:
- trunk/bp-core/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-admin.php
r4775 r4794 329 329 function bp_core_admin_component_options() { 330 330 global $bp_wizard; 331 332 require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 331 332 // Load core functions, if needed 333 if ( !function_exists( 'bp_get_option' ) ) 334 require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 333 335 334 336 $active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) ); -
trunk/bp-core/admin/bp-core-schema.php
r4775 r4794 1 1 <?php 2 require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' ); 3 2 4 3 function bp_core_set_charset() { 5 4 global $wpdb; 6 5 7 require ( ABSPATH . 'wp-admin/includes/upgrade.php' );6 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 8 7 9 8 /* BuddyPress component DB schema */ -
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.