| @@ -126,8 +126,11 @@ | ||
| 126 | 126 | update_option( 'permalink_structure', '/%postname%/' ); |
| 127 | 127 | // flush_rewrite_rules(); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + // Set roles and capabilities. | |
| 131 | + learn_press_add_user_roles(); | |
| 132 | + | |
| 130 | 133 | // Rebuilds them with LP CPTs and pages on next request. |
| 131 | 134 | flush_rewrite_rules(); |
| 132 | 135 | |
| 133 | 136 | // Force option users_can_register to ON. |