Skip to:
Content

BuddyPress.org


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

Remove build & src parts from BP plugin basename : the return

Untill / if a better solution is found, removing the build & src parts from the plugin basename will meanwhile make sure the root blog id is correctly set in multisite configs.

See #5652

File:
1 edited

Legend:

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

    r8435 r8436  
    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.