diff --git src/bp-loader.php src/bp-loader.php
index e73cbf9..9e6461d 100644
|
|
class BuddyPress { |
259 | 259 | $plugins = get_site_option( 'active_sitewide_plugins'); |
260 | 260 | |
261 | 261 | // basename |
262 | | $basename = basename( constant( 'BP_PLUGIN_DIR' ) ) . '/bp-loader.php'; |
| 262 | $basename = plugin_basename( constant( 'BP_PLUGIN_DIR' ) . '/bp-loader.php' ); |
263 | 263 | |
264 | 264 | // plugin is network-activated; use main site ID instead |
265 | 265 | if ( isset( $plugins[ $basename ] ) ) { |
… |
… |
class BuddyPress { |
358 | 358 | |
359 | 359 | // BuddyPress root directory |
360 | 360 | $this->file = constant( 'BP_PLUGIN_DIR' ) . 'bp-loader.php'; |
361 | | $this->basename = basename( constant( 'BP_PLUGIN_DIR' ) ) . '/bp-loader.php'; |
| 361 | $this->basename = plugin_basename( constant( 'BP_PLUGIN_DIR' ) . '/bp-loader.php' ); |
362 | 362 | $this->plugin_dir = trailingslashit( constant( 'BP_PLUGIN_DIR' ) . constant( 'BP_SOURCE_SUBDIRECTORY' ) ); |
363 | 363 | $this->plugin_url = trailingslashit( constant( 'BP_PLUGIN_URL' ) . constant( 'BP_SOURCE_SUBDIRECTORY' ) ); |
364 | 364 | |