Ticket #3585: 3585.diff
| File 3585.diff, 1.2 KB (added by , 15 years ago) |
|---|
-
bp-loader.php
60 60 define( 'BP_SEARCH_SLUG', 'search' ); 61 61 62 62 // Setup the BuddyPress theme directory 63 register_theme_directory( WP_PLUGIN_DIR . '/buddypress/bp-themes' );63 register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' ); 64 64 65 65 /** Loader ********************************************************************/ 66 66 … … 79 79 // This is a new installation. 80 80 if ( empty( $bp->database_version ) ) { 81 81 $bp->maintenance_mode = 'install'; 82 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );82 require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' ); 83 83 84 84 // There is a previous installation 85 85 } else { 86 86 // Load core 87 require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );87 require( BP_PLUGIN_DIR . '/bp-core/bp-core-loader.php' ); 88 88 89 89 // Check if an update is required 90 90 if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_network_activate ) ) { 91 91 $bp->maintenance_mode = 'update'; 92 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );92 require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' ); 93 93 } 94 94 } 95 95