Skip to:
Content

BuddyPress.org

Ticket #5652: 5652.patch

File 5652.patch, 567 bytes (added by imath, 11 years ago)
  • src/bp-loader.php

    diff --git src/bp-loader.php src/bp-loader.php
    index 96e517f..6ed9d59 100644
    class BuddyPress { 
    260260                                        $plugins = get_site_option( 'active_sitewide_plugins');
    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
    266266                                        if ( isset( $plugins[ $basename ] ) ) {