@@ 97-102 (lines=6) @@ | ||
94 | wsl_watchdog_init(); |
|
95 | ||
96 | // halt, if mode login and user already logged in |
|
97 | if( 'login' == $auth_mode && is_user_logged_in() ) |
|
98 | { |
|
99 | $current_user = wp_get_current_user(); |
|
100 | ||
101 | return wsl_process_login_render_notice_page( sprintf( _wsl__( "You are already logged in as %s. Do you want to <a href='%s'>log out</a>?", 'wordpress-social-login' ), $current_user->display_name, wp_logout_url( home_url() ) ) ); |
|
102 | } |
|
103 | ||
104 | // halt, if mode link and user not logged in |
|
105 | if( 'link' == $auth_mode && ! is_user_logged_in() ) |
|
@@ 105-108 (lines=4) @@ | ||
102 | } |
|
103 | ||
104 | // halt, if mode link and user not logged in |
|
105 | if( 'link' == $auth_mode && ! is_user_logged_in() ) |
|
106 | { |
|
107 | return wsl_process_login_render_notice_page( sprintf( _wsl__( "You have to be logged in to be able to link your existing account. Do you want to <a href='%s'>login</a>?", 'wordpress-social-login' ), wp_login_url( home_url() ) ) ); |
|
108 | } |
|
109 | ||
110 | // halt, if mode test and not admin |
|
111 | if( 'test' == $auth_mode && ! current_user_can('manage_options') ) |