Ticket #40768: 40768.diff
File 40768.diff, 341 bytes (added by , 7 years ago) |
---|
Line | |
---|---|
1 | 656,657c656,666 |
2 | < wp_redirect(wp_login_url()); |
3 | < exit; |
4 | --- |
5 | > if(is_user_logged_in()){ |
6 | > if(current_user_can('administrator') || current_user_can('editor')) { |
7 | > wp_redirect( admin_url('index.php') ); |
8 | > } else { |
9 | > wp_redirect( home_url() ); |
10 | > } |
11 | > exit; |
12 | > } else { |
13 | > wp_redirect(wp_login_url()); |
14 | > exit; |
15 | > } |