Skip to:
Content

BuddyPress.org

Ticket #6046: 6046.1.patch

File 6046.1.patch, 744 bytes (added by DJPaul, 10 years ago)
  • src/bp-core/bp-core-dependency.php

    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() { 
    8181 * @uses do_action() Calls 'bp_setup_current_user'.
    8282 */
    8383function 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        }
    8491
    8592        // If the current user is being setup before the "init" action has fired,
    8693        // strange (and difficult to debug) role/capability issues will occur.