Skip to:
Content

BuddyPress.org

Changeset 8433


Ignore:
Timestamp:
05/20/2014 08:06:55 PM (5 years ago)
Author:
imath
Message:

Remove build & src parts from BuddyPress plugin basename

In case the trunk version or the git repo of BuddyPress are used, make sure the build & src parts are removed so that the root blog id is correctly set in multisite configs.

Fixes #5652

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-loader.php

    r8369 r8433  
    261261
    262262                    // basename
    263                     $basename = plugin_basename( constant( 'BP_PLUGIN_DIR' ) . 'bp-loader.php' );
     263                    $basename = str_replace( array( 'build/', 'src/' ), '', plugin_basename( constant( 'BP_PLUGIN_DIR' ) . 'bp-loader.php' ) );
    264264
    265265                    // plugin is network-activated; use main site ID instead
Note: See TracChangeset for help on using the changeset viewer.