Skip to:
Content

BuddyPress.org

Ticket #6589: 6589.01.patch

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

     
    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.
    224224        if ( ! isset( $GLOBALS['wp_customize'] ) && ! did_action( 'after_setup_theme' ) ) {
    225                 _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'buddypress' ), '1.7' );
     225                $e = new Exception;
     226                $trace = $e->getTraceAsString();
     227
     228                _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'buddypress' ) . "\n===\nTrace:\n" . substr( $trace, strpos( $trace, '#6' ) ) . "\n===\n", '1.7' );
    226229        }
    227230
    228231        /**