Changeset 6765
- Timestamp:
- 02/06/2013 05:52:42 AM (12 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-actions.php
r6762 r6765 35 35 add_action( 'init', 'bp_init', 10 ); 36 36 add_action( 'wp', 'bp_ready', 10 ); 37 add_action( 'set_current_user', 'bp_setup_current_user', 10 ); 37 38 add_action( 'setup_theme', 'bp_setup_theme', 10 ); 38 39 add_action( 'after_setup_theme', 'bp_after_setup_theme', 10 ); -
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.