Skip to:
Content

BuddyPress.org

Changeset 5298


Ignore:
Timestamp:
11/07/2011 07:05:05 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Only register the theme directory if BuddyPress is properly installed. This prevents activating the theme before BuddyPress functions are available. Fixes #3724.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r5259 r5298  
    6060    define( 'BP_SEARCH_SLUG', 'search' );
    6161
    62 // Setup the BuddyPress theme directory
    63 register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' );
    64 
    6562/** Loader ********************************************************************/
    6663
     
    8481// There is a previous installation
    8582} else {
     83
     84    // Setup the BuddyPress theme directory
     85    register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' );
     86
    8687    // Load core
    8788    require( BP_PLUGIN_DIR . '/bp-core/bp-core-loader.php' );
Note: See TracChangeset for help on using the changeset viewer.