Skip to:
Content

bbPress.org

Ticket #3342: 3342.diff

File 3342.diff, 849 bytes (added by fahimmurshed, 5 years ago)

patch

  • bbpress.php

     
    2323 * License:     GPLv2 or later (license.txt)
    2424 */
    2525
    26 // Exit if accessed directly
     26// Exit if accessed directly.
    2727defined( 'ABSPATH' ) || exit;
    2828
    29 // Assume you want to load from build
     29// Assume you want to load from build.
    3030$bbp_loader = __DIR__ . '/build/bbpress.php';
    3131
    32 // Load from source if no build exists
     32// Load from source if no build exists.
    3333if ( ! file_exists( $bbp_loader ) || defined( 'BBP_LOAD_SOURCE' ) ) {
    3434        $bbp_loader = __DIR__ . '/src/bbpress.php';
    3535}
    3636
    37 // Include bbPress
     37// Include bbPress.
    3838include $bbp_loader;
    3939
    40 // Unset the loader, since it's loaded in global scope
     40// Unset the loader, since it's loaded in global scope.
    4141unset( $bbp_loader );