Skip to:
Content

bbPress.org

Changes between Version 2 and Version 3 of Ticket #2210, comment 3


Ignore:
Timestamp:
02/13/2013 06:33:37 PM (12 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2210, comment 3

    v2 v3  
    99Unfortunately, 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.
    1010
     11We 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
     13Basically, it stinks.
     14
    1115Fundamentally, 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.