Skip to:
Content

bbPress.org

Changes between Version 7 and Version 8 of Ticket #2210, comment 15


Ignore:
Timestamp:
07/09/2017 08:18:48 PM (6 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2210, comment 15

    v7 v8  
    11Just ran into this issue.
    22
    3 The admin bar problem occurs when a user does not have a WordPress role such as `'subscriber'` and when bbPress' auto-role option is enabled.  This is basically what Boone notes in comment:4.
     3The admin bar problem occurs when a user does not have a WordPress role such as `'subscriber'` and when bbPress' auto-role option is enabled.
    44
    55To duplicate:
     
    1111However, this user does not have a WordPress role.
    1212
    13 Attached patch adds the default WordPress role to the current user if one doesn't exist, which should fix this problem.
     13Attached patch adds the default WordPress role to the current user if one doesn't exist, which should fix this problem.  This is basically what Boone notes in comment:4.
    1414
    1515~~I'm not sure of any adverse effects with this approach, so could use some dev feedback here.~~  Perhaps adding the WordPress default role in `bbp_set_current_user_default_role()` might be too early and might conflict with other plugins.  Just a quick thought, might not be accurate.