Changeset 6765 for trunk/bp-core/bp-core-dependency.php
- Timestamp:
- 02/06/2013 05:52:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-dependency.php
r6605 r6765 69 69 70 70 /** 71 * Setup the currently logged-in user 72 * 73 * @uses did_action() To make sure the user isn't loaded out of order 74 * @uses do_action() Calls 'bp_setup_current_user' 75 */ 76 function bp_setup_current_user() { 77 78 // If the current user is being setup before the "init" action has fired, 79 // strange (and difficult to debug) role/capability issues will occur. 80 if ( ! did_action( 'after_setup_theme' ) ) { 81 _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().' ), '1.7' ); 82 } 83 84 do_action( 'bp_setup_current_user' ); 85 } 86 87 /** 71 88 * Initlialize code 72 89 */
Note: See TracChangeset
for help on using the changeset viewer.