Skip to:
Content

BuddyPress.org

Ticket #8242: 8242.diff

File 8242.diff, 1.5 KB (added by fahimmurshed, 19 months ago)

Patch

  • bp-loader.php

     
    2121 * License:     GPLv2 or later (license.txt)
    2222 */
    2323
    24 // Exit if accessed directly
     24// Exit if accessed directly.
    2525defined( 'ABSPATH' ) || exit;
    2626
    27 // Assume you want to load from build
     27// Assume you want to load from build.
    2828$bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php';
    2929
    30 // Load from source if no build exists
     30// Load from source if no build exists.
    3131if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) {
    3232        $bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php';
    3333        $subdir = 'src';
     
    3535        $subdir = 'build';
    3636}
    3737
    38 // Set source subdirectory
     38// Set source subdirectory.
    3939define( 'BP_SOURCE_SUBDIRECTORY', $subdir );
    4040
    41 // Define overrides - only applicable to those running trunk
     41// Define overrides - only applicable to those running trunk.
    4242if ( ! defined( 'BP_PLUGIN_DIR' ) ) {
    4343        define( 'BP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    4444}
    4545if ( ! defined( 'BP_PLUGIN_URL' ) ) {
    46         // Be nice to symlinked directories
     46        // Be nice to symlinked directories.
    4747        define( 'BP_PLUGIN_URL', plugins_url( trailingslashit( basename( constant( 'BP_PLUGIN_DIR' ) ) ) ) );
    4848}
    4949
    50 // Include BuddyPress
     50// Include BuddyPress.
    5151include( $bp_loader );
    5252
    53 // Unset the loader, since it's loaded in global scope
     53// Unset the loader, since it's loaded in global scope.
    5454unset( $bp_loader );