Changeset 6120 for branches/2.5/includes/core/sub-actions.php
- Timestamp:
- 11/09/2016 10:53:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/core/sub-actions.php
r5023 r6120 137 137 * 138 138 * @since bbPress (r2695) 139 * @uses did_action() To make sure the user isn't loaded out of order140 139 * @uses do_action() Calls 'bbp_setup_current_user' 141 140 */ 142 141 function bbp_setup_current_user() { 143 144 // If the current user is being setup before the "init" action has fired,145 // strange (and difficult to debug) role/capability issues will occur.146 if ( ! did_action( 'after_setup_theme' ) ) {147 _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );148 }149 150 142 do_action( 'bbp_setup_current_user' ); 151 143 }
Note: See TracChangeset
for help on using the changeset viewer.