diff --git a/src/bp-core/bp-core-dependency.php b/src/bp-core/bp-core-dependency.php
index 8ce93a7..99b9d2d 100644
|
a
|
b
|
function bp_setup_widgets() { |
| 81 | 81 | * @uses do_action() Calls 'bp_setup_current_user'. |
| 82 | 82 | */ |
| 83 | 83 | function bp_setup_current_user() { |
| | 84 | // The Customizer loads before init. see _wp_customize_include(). |
| | 85 | if ( |
| | 86 | ( isset( $_REQUEST['wp_customize'] ) && 'on' === $_REQUEST['wp_customize'] ) || |
| | 87 | ( is_admin() && 'customize.php' === basename( $_SERVER['PHP_SELF'] ) ) |
| | 88 | ) { |
| | 89 | return; |
| | 90 | } |
| 84 | 91 | |
| 85 | 92 | // If the current user is being setup before the "init" action has fired, |
| 86 | 93 | // strange (and difficult to debug) role/capability issues will occur. |