Skip to:
Content

BuddyPress.org

Changeset 8366


Ignore:
Timestamp:
05/04/2014 01:42:26 PM (6 years ago)
Author:
djpaul
Message:

Core: don't allow build or src in basename in BuddyPress:setup_globals().

Fixes problems with activation hooks.

This change is needed as result of the trunk re-organisation caused by the adoption of Grunt. See #5160

File:
1 edited

Legend:

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

    r8364 r8366  
    360360        // BuddyPress root directory
    361361        $this->file           = __FILE__;
    362         $this->basename       = plugin_basename( $this->file );
     362        $this->basename       = str_replace( array( 'build/', 'src/' ), '', plugin_basename( $this->file ) );
    363363        $this->plugin_dir     = BP_PLUGIN_DIR;
    364364        $this->plugin_url     = BP_PLUGIN_URL;
Note: See TracChangeset for help on using the changeset viewer.