Skip to:
Content

BuddyPress.org

Ticket #7086: 7086.01.patch

File 7086.01.patch, 673 bytes (added by r-a-y, 9 years ago)
  • src/bp-core/bp-core-dependency.php

     
    221221
    222222        // If the current user is being setup before the "init" action has fired,
    223223        // strange (and difficult to debug) role/capability issues will occur.
    224         if ( ! isset( $GLOBALS['wp_customize'] ) && ! did_action( 'after_setup_theme' ) ) {
     224        if ( false === strpos( bp_get_requested_url(), 'customize.php' ) && false === strpos( wp_get_referer(), 'customize.php' ) && ! did_action( 'after_setup_theme' ) ) {
    225225                $e = new Exception;
    226226                $trace = $e->getTraceAsString();
    227227