Creates invalid user_nicename [PATCH]
-
This plugin currently allows spaces and other characters in wp_users.user_nicename which is a problem for generating author links which will 404 because of the space (%20) and other characters.
diff --git a/wp-content/plugins/wordpress-social-login/includes/plugin.auth.php b/wp-content/plugins/wordpress-social-login/includes/plugin.auth.php index 05a0b4c..f42a944 100644 --- a/wp-content/plugins/wordpress-social-login/includes/plugin.auth.php +++ b/wp-content/plugins/wordpress-social-login/includes/plugin.auth.php @@ -138,7 +138,7 @@ function wsl_process_login() 'first_name' => $hybridauth_user_profile->firstName, 'last_name' => $hybridauth_user_profile->lastName, - 'user_nicename' => $hybridauth_user_profile->displayName, + 'user_nicename' => $user_login, 'display_name' => $hybridauth_user_profile->displayName, 'user_url' => $hybridauth_user_profile->profileURL, 'description' => $hybridauth_user_profile->description,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Creates invalid user_nicename [PATCH]’ is closed to new replies.