Skip to:
Content

BuddyPress.org

Changeset 5185


Ignore:
Timestamp:
09/24/2011 03:04:58 AM (15 years ago)
Author:
boonebgorges
Message:

Use BP_PLUGIN_DIR when possible in bp-loader.php. Fixes #3585. Props wpmuguru

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-loader.php

    r5170 r5185  
    6161
    6262// Setup the BuddyPress theme directory
    63 register_theme_directory( WP_PLUGIN_DIR . '/buddypress/bp-themes' );
     63register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' );
    6464
    6565/** Loader ********************************************************************/
     
    8080if ( empty( $bp->database_version ) ) {
    8181        $bp->maintenance_mode = 'install';
    82         require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );
     82        require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
    8383
    8484// There is a previous installation
    8585} else {
    8686        // Load core
    87         require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );
     87        require( BP_PLUGIN_DIR . '/bp-core/bp-core-loader.php' );
    8888
    8989        // Check if an update is required
    9090        if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_network_activate ) ) {
    9191                $bp->maintenance_mode = 'update';
    92                 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );
     92                require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
    9393        }
    9494}
Note: See TracChangeset for help on using the changeset viewer.