From 18b7bb105f785aef31371de3c2b3a430f038578c Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 22 May 2014 11:45:18 -0300 Subject: [PATCH] fix social connect login from registration page when multisite is enabled (reported by bvpraveenkumar) fixes #53 --- media/js/connect.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media/js/connect.js b/media/js/connect.js index 2dd3619..4f08805 100644 --- a/media/js/connect.js +++ b/media/js/connect.js @@ -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("
"); - jQuery('#loginform').append(""); + if (!jQuery('#setupform').length) { + jQuery('#loginform').append(""); + } } }