Created
November 9, 2015 07:04
-
-
Save champsupertramp/e412635fee8701c759f7 to your computer and use it in GitHub Desktop.
Ultimate Member: Social Login – Redirecting to homepage, and not logging in or registering or CSRF tokens/state mismatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*** If you're using a custom WordPress theme, one of the possible causes of the issue is ' Post Relational Links ' added in the Header | |
*** ( https://developer.wordpress.org/reference/functions/adjacent_posts_rel_link/ ) | |
** This feature loads pages in the background process and it causes the register page to load multiple times. | |
** It reloads the Social Tokens again and causes mismatch session keys during authentication | |
** | |
**/ | |
remove_action('wp_head', 'start_post_rel_link', 10, 0 ); | |
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment