Changeset 4375
- Timestamp:
- 11/09/2012 03:56:55 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbpress.php
r4368 r4375 822 822 public function setup_current_user() { 823 823 $this->current_user = &wp_get_current_user(); 824 825 // Setup the default user role826 bbp_set_current_user_default_role();827 824 } 828 825 -
trunk/includes/core/actions.php
r4371 r4375 100 100 * role between sites. Note that if a user already has a role on that site, no 101 101 * mapping will occur. 102 */ 103 add_action( 'switch_blog', 'bbp_set_current_user_default_role', 1 ); 102 * 103 * We also hook to 'bbp_setup_current_user' -- naturally. 104 */ 105 add_action( 'switch_blog', 'bbp_set_current_user_default_role' ); 106 add_action( 'bbp_setup_current_user', 'bbp_set_current_user_default_role' ); 104 107 105 108 /**
Note: See TracChangeset
for help on using the changeset viewer.