Skip to:
Content

BuddyPress.org

Changeset 6300


Ignore:
Timestamp:
09/04/2012 02:17:13 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Theme Functions:

  • Do not include buddypress-functions.php when deactivating BuddyPress.
  • Prevents including functions with dependencies that are not available anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template-loader.php

    r6285 r6300  
    273273    global $pagenow;
    274274
    275     if ( ! defined( 'WP_INSTALLING' ) || ( !empty( $pagenow ) && ( 'wp-activate.php' !== $pagenow ) ) ) {
     275    // Do not include on BuddyPress deactivation
     276    if ( bp_is_deactivation() )
     277        return;
     278
     279    // Only include if not installing or if activating via wp-activate.php
     280    if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
    276281        bp_locate_template( 'buddypress-functions.php', true );
    277282    }
Note: See TracChangeset for help on using the changeset viewer.