Skip to:
Content

BuddyPress.org

Changeset 8523


Ignore:
Timestamp:
06/15/2014 01:45:43 PM (10 years ago)
Author:
imath
Message:

Use dirname( FILE ) instead of DIR in trunk loader file

As WordPress minimum PHP required version is 5.2.4 and DIR was introduced in 5.3, we need to use dirname( FILE ) so that people can use the trunk version of BuddyPress if their PHP version is lower than 5.3.

props hnla, boonebgorges

Fixes #5702

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r8393 r8523  
    2626
    2727// Assume you want to load from build
    28 $bp_loader = __DIR__ . '/build/bp-loader.php';
     28$bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php';
    2929
    3030// Load from source if no build exists
    3131if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) {
    32     $bp_loader = __DIR__ . '/src/bp-loader.php';
     32    $bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php';
    3333}
    3434
Note: See TracChangeset for help on using the changeset viewer.