Changeset 3946 for trunk/bp-loader.php
- Timestamp:
- 01/27/2011 06:37:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r3917 r3946 11 11 /** Constants *****************************************************************/ 12 12 13 define( 'BP_VERSION', '1.3-bleeding' ); 14 define( 'BP_DB_VERSION', 3605 ); 13 // Define the BuddyPress version 14 if ( !defined( 'BP_VERSION' ) ) 15 define( 'BP_VERSION', '1.3-bleeding' ); 16 17 // Define the database version 18 if ( !defined( 'BP_DB_VERSION' ) ) 19 define( 'BP_DB_VERSION', 3605 ); 15 20 16 21 // Define on which blog ID BuddyPress should run … … 19 24 20 25 // Path and URL 21 define( 'BP_PLUGIN_DIR', WP_PLUGIN_DIR . '/buddypress' ); 22 define( 'BP_PLUGIN_URL', plugins_url( $path = '/buddypress' ) ); 26 if ( !defined( 'BP_PLUGIN_DIR' ) ) 27 define( 'BP_PLUGIN_DIR', WP_PLUGIN_DIR . '/buddypress' ); 28 29 if ( !defined( 'BP_PLUGIN_URL' ) ) 30 define( 'BP_PLUGIN_URL', plugins_url( $path = '/buddypress' ) ); 23 31 24 32 // Load the WP abstraction file so BuddyPress can run on all WordPress setups. 25 require 33 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' ); 26 34 27 35 // Place your custom code (actions/filters) in a file called 28 36 // '/plugins/bp-custom.php' and it will be loaded before anything else. 29 37 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 30 require ( WP_PLUGIN_DIR . '/bp-custom.php' );38 require_once( WP_PLUGIN_DIR . '/bp-custom.php' ); 31 39 32 40 // Define the user and usermeta table names, useful if you are using custom or shared tables. … … 45 53 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-bootstrap.php' ); 46 54 47 /** 55 if ( !function_exists( 'bp_loader_activate' ) ) : 56 /** 48 57 * Defines BP's activation routine. 49 58 * … … 69 78 } 70 79 register_activation_hook( 'buddypress/bp-loader.php', 'bp_loader_activate' ); 80 endif; 71 81 82 if ( !function_exists( 'bp_loader_deactivate' ) ) : 72 83 // Deactivation Function 73 84 function bp_loader_deactivate() { … … 75 86 } 76 87 register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' ); 88 endif; 77 89 78 90 ?>
Note: See TracChangeset
for help on using the changeset viewer.