Ticket #3342: 3342.diff
File 3342.diff, 849 bytes (added by , 5 years ago) |
---|
-
bbpress.php
23 23 * License: GPLv2 or later (license.txt) 24 24 */ 25 25 26 // Exit if accessed directly 26 // Exit if accessed directly. 27 27 defined( 'ABSPATH' ) || exit; 28 28 29 // Assume you want to load from build 29 // Assume you want to load from build. 30 30 $bbp_loader = __DIR__ . '/build/bbpress.php'; 31 31 32 // Load from source if no build exists 32 // Load from source if no build exists. 33 33 if ( ! file_exists( $bbp_loader ) || defined( 'BBP_LOAD_SOURCE' ) ) { 34 34 $bbp_loader = __DIR__ . '/src/bbpress.php'; 35 35 } 36 36 37 // Include bbPress 37 // Include bbPress. 38 38 include $bbp_loader; 39 39 40 // Unset the loader, since it's loaded in global scope 40 // Unset the loader, since it's loaded in global scope. 41 41 unset( $bbp_loader );