Ticket #8242: 8242.diff
File 8242.diff, 1.5 KB (added by , 5 years ago) |
---|
-
bp-loader.php
21 21 * License: GPLv2 or later (license.txt) 22 22 */ 23 23 24 // Exit if accessed directly 24 // Exit if accessed directly. 25 25 defined( 'ABSPATH' ) || exit; 26 26 27 // Assume you want to load from build 27 // Assume you want to load from build. 28 28 $bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php'; 29 29 30 // Load from source if no build exists 30 // Load from source if no build exists. 31 31 if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) { 32 32 $bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php'; 33 33 $subdir = 'src'; … … 35 35 $subdir = 'build'; 36 36 } 37 37 38 // Set source subdirectory 38 // Set source subdirectory. 39 39 define( 'BP_SOURCE_SUBDIRECTORY', $subdir ); 40 40 41 // Define overrides - only applicable to those running trunk 41 // Define overrides - only applicable to those running trunk. 42 42 if ( ! defined( 'BP_PLUGIN_DIR' ) ) { 43 43 define( 'BP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 44 44 } 45 45 if ( ! defined( 'BP_PLUGIN_URL' ) ) { 46 // Be nice to symlinked directories 46 // Be nice to symlinked directories. 47 47 define( 'BP_PLUGIN_URL', plugins_url( trailingslashit( basename( constant( 'BP_PLUGIN_DIR' ) ) ) ) ); 48 48 } 49 49 50 // Include BuddyPress 50 // Include BuddyPress. 51 51 include( $bp_loader ); 52 52 53 // Unset the loader, since it's loaded in global scope 53 // Unset the loader, since it's loaded in global scope. 54 54 unset( $bp_loader );