Ticket #6589: 6589.01.patch
File 6589.01.patch, 854 bytes (added by , 9 years ago) |
---|
-
src/bp-core/bp-core-dependency.php
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 224 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' ); 226 229 } 227 230 228 231 /**