Skip to content

Commit

Permalink
fix social connect login from registration page when multisite is ena…
Browse files Browse the repository at this point in the history
…bled (reported by bvpraveenkumar)

fixes rodrigoprimo#53
  • Loading branch information
rodrigoprimo committed May 22, 2014
1 parent f455551 commit 18b7bb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/js/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ window.wp_social_connect = function(config) {
// create the login form
var login_uri = jQuery("#social_connect_login_form_uri").val();
jQuery('body').append("<form id='loginform' method='post' action='" + login_uri + "'></form>");
jQuery('#loginform').append("<input type='hidden' id='redirect_to' name='redirect_to' value='" + window.location.href + "'>");
if (!jQuery('#setupform').length) {
jQuery('#loginform').append("<input type='hidden' id='redirect_to' name='redirect_to' value='" + window.location.href + "'>");
}
}
}

Expand Down

0 comments on commit 18b7bb1

Please sign in to comment.