Skip to:
Content

BuddyPress.org

Changeset 10327


Ignore:
Timestamp:
11/08/2015 01:27:52 PM (9 years ago)
Author:
imath
Message:

Do not register default theme compat features on deactivation.

This prevents a notice error when deactivating BuddyPress.

Fixes #6715

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r10153 r10327  
    530530function bp_register_theme_compat_default_features() {
    531531    global $content_width;
     532
     533    // Do not set up default features on deactivation
     534    if ( bp_is_deactivation() ) {
     535        return;
     536    }
    532537
    533538    // If the current theme doesn't need theme compat, bail at this point.
Note: See TracChangeset for help on using the changeset viewer.