Ticket #3108: ticket.3108.diff
File ticket.3108.diff, 1.0 KB (added by , 14 years ago) |
---|
-
bp-loader.php
20 20 if ( !defined( 'BP_DB_VERSION' ) ) 21 21 define( 'BP_DB_VERSION', 3706 ); 22 22 23 // Place your custom code (actions/filters) in a file called 24 // '/plugins/bp-custom.php' and it will be loaded before anything else. 23 /** 24 * Drop-in a bp-custom.php file within the plugins/ directory or 25 * the active theme's directory to customize BuddyPress before it loads. 26 */ 25 27 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 26 28 require_once( WP_PLUGIN_DIR . '/bp-custom.php' ); 27 29 30 if ( file_exists( get_stylesheet_directory() . '/bp-custom.php' ) ) 31 require_once( get_stylesheet_directory() . '/bp-custom.php' ); 32 33 elseif ( file_exists( get_template_directory() . '/bp-custom.php' ) ) 34 require_once( get_template_directory() . '/bp-custom.php' ); 35 28 36 // Define on which blog ID BuddyPress should run 29 37 if ( !defined( 'BP_ROOT_BLOG' ) ) 30 38 define( 'BP_ROOT_BLOG', 1 );