Changes between Version 2 and Version 3 of Ticket #2210, comment 3
- Timestamp:
- 02/13/2013 06:33:37 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2210, comment 3
v2 v3 9 9 Unfortunately, a/b/c aren't options, because the problem that auto-role'ing solves is users not having adequate caps when (or rather before) the first visit to the site hits the template loader. We want the caps preloaded, so that toolbars and other cap checks are accurate. 10 10 11 We could theoretically check the filter stack, and skip bbp_set_current_user_default_role if it's being called after 'init'. That's how switch_to_blog() checks to see if the user should be re-initialized. But, this poses another issue of not knowing when the original blog has been restored, and whether or not to append the role/caps if necessary. 12 13 Basically, it stinks. 14 11 15 Fundamentally, this is a WordPress core issue with the WP_Roles global creation and reinitialization. That said, turning off "Auto role" in bbPress's forums settings is an easy way around this for now.