Skip to content

Instantly share code, notes, and snippets.

@champsupertramp
Created November 9, 2015 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/e412635fee8701c759f7 to your computer and use it in GitHub Desktop.
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
/**
*** 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