commit 5d7368912e34eb7d704c0a62727b2b2f3dbbb093 Author: himselfv Date: Wed Mar 20 16:04:59 2013 +0400 Fix: Do not call hooks twice, what if they do something permanent? And what's the point? diff --git a/includes/services/wsl.authentication.php b/includes/services/wsl.authentication.php index a63cfe4..cfb8a6e 100644 --- a/includes/services/wsl.authentication.php +++ b/includes/services/wsl.authentication.php @@ -862,9 +862,7 @@ function wsl_process_login_create_wp_user( $provider, $hybridauth_user_profile, } // HOOKABLE: change the user data - if( apply_filters( 'wsl_hook_process_login_alter_userdata', $userdata, $provider, $hybridauth_user_profile ) ){ - $userdata = apply_filters( 'wsl_hook_process_login_alter_userdata', $userdata, $provider, $hybridauth_user_profile ); - } + $userdata = apply_filters( 'wsl_hook_process_login_alter_userdata', $userdata, $provider, $hybridauth_user_profile ); // HOOKABLE: any action to fire right before a user created on database do_action( 'wsl_hook_process_login_before_insert_user', $userdata, $provider, $hybridauth_user_profile );