Changes between Version 7 and Version 8 of Ticket #2210, comment 15
- Timestamp:
- 07/09/2017 08:18:48 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2210, comment 15
v7 v8 1 1 Just ran into this issue. 2 2 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.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. 4 4 5 5 To duplicate: … … 11 11 However, this user does not have a WordPress role. 12 12 13 Attached patch adds the default WordPress role to the current user if one doesn't exist, which should fix this problem. 13 Attached 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. 14 14 15 15 ~~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.