Ticket #7086: 7086.01.patch
File 7086.01.patch, 673 bytes (added by , 9 years ago) |
---|
-
src/bp-core/bp-core-dependency.php
221 221 222 222 // If the current user is being setup before the "init" action has fired, 223 223 // 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' ) ) { 225 225 $e = new Exception; 226 226 $trace = $e->getTraceAsString(); 227 227