Changeset 4371
- Timestamp:
- 11/09/2012 12:42:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/actions.php
r4364 r4371 89 89 */ 90 90 add_action( 'bbp_setup_theme', 'bbp_add_forums_roles', 1 ); 91 92 /** 93 * When switching to a new blog, a users mapped role will get wiped out by 94 * WP_User::for_blog() and WP_User::_init_caps(). 95 * 96 * This happens naturally in multisite setups during WP_Admin_Bar::initialize(), 97 * which is annoying because it will happen on each page-load. 98 * 99 * Resetting the role on blog-switch enables us to maintain the user's dynamic 100 * role between sites. Note that if a user already has a role on that site, no 101 * mapping will occur. 102 */ 103 add_action( 'switch_blog', 'bbp_set_current_user_default_role', 1 ); 91 104 92 105 /**
Note: See TracChangeset
for help on using the changeset viewer.