| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | echo 'You are not allowed to access this page directly.'; |
| 5 | 5 | exit; |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | -define('LOGINIZER_VERSION', '2.0.8'); | |
| 8 | +define('LOGINIZER_VERSION', '2.0.9'); | |
| 9 | 9 | define('LOGINIZER_DIR', dirname(LOGINIZER_FILE)); |
| 10 | 10 | define('LOGINIZER_URL', plugins_url('', LOGINIZER_FILE)); |
| 11 | 11 | define('LOGINIZER_PRO_URL', 'https://loginizer.com/features#compare'); |
| 12 | 12 | define('LOGINIZER_PRICING_URL', 'https://loginizer.com/pricing'); |
| @@ -339,15 +339,15 @@ | ||
| 339 | 339 | if(!empty($loginizer['ultimate-member-active'])){ |
| 340 | 340 | add_action('wp_login_failed', 'loginizer_ultimatemember_error_handler', 10001); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | - if(!empty($_COOKIE['lz_social_error']) && !empty($loginizer['social_settings']) && !loginizer_is_blacklisted()){ | |
| 343 | + if(!empty($_COOKIE['lz_social_error']) && !empty($loginizer['social_settings'])){ | |
| 344 | 344 | add_filter('wp_login_errors', 'loginizer_social_login_error_handler', 10000, 2); |
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | // Social Login Form Actions |
| 349 | - if(!empty($loginizer['social_settings']) && !loginizer_is_blacklisted()){ | |
| 349 | + if(!empty($loginizer['social_settings'])){ | |
| 350 | 350 | if(!empty($loginizer['social_settings']['login']['login_form'])){ |
| 351 | 351 | add_action('login_form', 'loginizer_social_btn_login'); |
| 352 | 352 | } |
| 353 | 353 | } |
| @@ -806,8 +806,12 @@ | ||
| 806 | 806 | |
| 807 | 807 | // Handles social login URL |
| 808 | 808 | function loginizer_social_login_error_handler($errors = '', $redirect_to = ''){ |
| 809 | 809 | global $loginizer; |
| 810 | + | |
| 811 | + if(loginizer_is_blacklisted()){ | |
| 812 | + return $errors; | |
| 813 | + } | |
| 810 | 814 | |
| 811 | 815 | loginizer_get_social_error(); |
| 812 | 816 | |
| 813 | 817 | if(empty($loginizer['social_errors'])){ |