WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer - Version 7.11.2

Version Description

  • [Bugfix] "Redirect to same page" option was not working for Google+ and Linkedin
  • [Bugfix] Facebook login was not working with Facebook app's "Strict Mode" enabled
  • [Bugfix] Linkedin login was not working properly in some cases
  • [Improvement] Size of Social login popup was not enough when "Load all Javascript files in single file" option was enabled
Download this release

Release Info

Developer the_champ
Plugin Icon 128x128 WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer
Version 7.11.2
Comparing to
See all releases

Code changes from version 7.11.1 to 7.11.2

Files changed (3) hide show
  1. js/front/combined.js +1 -1
  2. readme.txt +14 -2
  3. super_socializer.php +26 -13
js/front/combined.js CHANGED
@@ -1,6 +1,6 @@
1
  theChampFBKey = typeof theChampFBKey != 'undefined' ? theChampFBKey : '', theChampFBLang = typeof theChampFBLang != 'undefined' ? theChampFBLang : 'en_US', theChampFbIosLogin = typeof theChampFbIosLogin != 'undefined' ? theChampFbIosLogin : 0;
2
  // general.js
3
- function theChampPopup(e){window.open(e,"_blank","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}function theChampStrReplace(e,t,n){for(var r=0;r<e.length;r++){n=n.replace(new RegExp(e[r],"g"),t[r])}return n}function theChampCallAjax(e){if(typeof jQuery!="undefined"){e()}else{theChampGetScript("https://code.jquery.com/jquery-latest.min.js",e)}}function theChampGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)}function theChampGetElementsByClass(e,t){if(e.getElementsByClassName){return e.getElementsByClassName(t)}else{return function(e,t){if(t==null){t=document}var n=[],r=t.getElementsByTagName("*"),i=r.length,s=new RegExp("(^|\\s)"+e+"(\\s|$)"),o,u;for(o=0,u=0;o<i;o++){if(s.test(r[o].className)){n[u]=r[o];u++}}return n}(t,e)}}if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}
4
  function heateorSsBrowserMsg(){var a=document.createElement("div");a.innerHTML='<button id="heateor_ss_browser_msg_close" class="close-button separated"><img src="'+theChampCloseIconPath+'" /></button><div id="the_champ_sharing_more_content"><div class="all-services" style="padding:20px 10px 0px 10px;height:auto;"><p>'+heateorSsSDKBlockedMsg+"</p></div></div>",a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_browser_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_browser_popup_bg").onclick=document.getElementById("heateor_ss_browser_msg_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}}
5
  "undefined"!=typeof heateorSsSDKBlockedMsg&&jQuery(function(){"shown"!=localStorage.getItem("heateorSsBrowserMsg")&&(jQuery("<img/>").attr("src","//apps.facebook.com/favicon.ico").error(function(){heateorSsBrowserMsg()}).css("display","none").appendTo(document.body),localStorage.setItem("heateorSsBrowserMsg","shown"))});
6
  function heateorSsLJLoginPopup(){var a=document.createElement("div");a.innerHTML='<button id="heateor_ss_lj_popup_close" class="close-button separated"><img src="'+theChampCloseIconPath+'" /></button><div id="the_champ_sharing_more_content"><div class="all-services" style="padding:20px 10px 0px 10px;height:auto;"><fieldset id="ss_openid"><legend>LiveJournal Login</legend><form action="'+theChampLJAuthUrl+'" method="post" onsubmit="this.login.disabled=true;"><input type="hidden" name="openid_action" value="SuperSocializerLogin"><div style="clear:both">'+theChampLJLoginUsernameString+'</div><div style="clear:both"><input type="text" name="openid_url" required class="openid_login"><input type="submit" name="login" value="Login"></div></form></fieldset></div></div></div>',a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_lj_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_lj_popup_bg").onclick=document.getElementById("heateor_ss_lj_popup_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}}
1
  theChampFBKey = typeof theChampFBKey != 'undefined' ? theChampFBKey : '', theChampFBLang = typeof theChampFBLang != 'undefined' ? theChampFBLang : 'en_US', theChampFbIosLogin = typeof theChampFbIosLogin != 'undefined' ? theChampFbIosLogin : 0;
2
  // general.js
3
+ function theChampPopup(e){window.open(e,"_blank","height=420,width=700,left=350,top=80,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}function theChampStrReplace(e,t,n){for(var r=0;r<e.length;r++){n=n.replace(new RegExp(e[r],"g"),t[r])}return n}function theChampCallAjax(e){if(typeof jQuery!="undefined"){e()}else{theChampGetScript("https://code.jquery.com/jquery-latest.min.js",e)}}function theChampGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)}function theChampGetElementsByClass(e,t){if(e.getElementsByClassName){return e.getElementsByClassName(t)}else{return function(e,t){if(t==null){t=document}var n=[],r=t.getElementsByTagName("*"),i=r.length,s=new RegExp("(^|\\s)"+e+"(\\s|$)"),o,u;for(o=0,u=0;o<i;o++){if(s.test(r[o].className)){n[u]=r[o];u++}}return n}(t,e)}}if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}
4
  function heateorSsBrowserMsg(){var a=document.createElement("div");a.innerHTML='<button id="heateor_ss_browser_msg_close" class="close-button separated"><img src="'+theChampCloseIconPath+'" /></button><div id="the_champ_sharing_more_content"><div class="all-services" style="padding:20px 10px 0px 10px;height:auto;"><p>'+heateorSsSDKBlockedMsg+"</p></div></div>",a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_browser_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_browser_popup_bg").onclick=document.getElementById("heateor_ss_browser_msg_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}}
5
  "undefined"!=typeof heateorSsSDKBlockedMsg&&jQuery(function(){"shown"!=localStorage.getItem("heateorSsBrowserMsg")&&(jQuery("<img/>").attr("src","//apps.facebook.com/favicon.ico").error(function(){heateorSsBrowserMsg()}).css("display","none").appendTo(document.body),localStorage.setItem("heateorSsBrowserMsg","shown"))});
6
  function heateorSsLJLoginPopup(){var a=document.createElement("div");a.innerHTML='<button id="heateor_ss_lj_popup_close" class="close-button separated"><img src="'+theChampCloseIconPath+'" /></button><div id="the_champ_sharing_more_content"><div class="all-services" style="padding:20px 10px 0px 10px;height:auto;"><fieldset id="ss_openid"><legend>LiveJournal Login</legend><form action="'+theChampLJAuthUrl+'" method="post" onsubmit="this.login.disabled=true;"><input type="hidden" name="openid_action" value="SuperSocializerLogin"><div style="clear:both">'+theChampLJLoginUsernameString+'</div><div style="clear:both"><input type="text" name="openid_url" required class="openid_login"><input type="submit" name="login" value="Login"></div></form></fieldset></div></div></div>',a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_lj_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_lj_popup_bg").onclick=document.getElementById("heateor_ss_lj_popup_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate?action=Super+Socializer
4
  Tags: social login, social share, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media follow, facebook login
5
  Requires at least: 2.5.0
6
  Tested up to: 4.9.4
7
- Stable tag: 7.11.1
8
  License: GPLv2 or later
9
 
10
  The unique Social Plugin to let you integrate Social Login, Social Share, Social Comments and Social Media follow at your website
@@ -208,6 +208,12 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
208
  8. **Social Commenting**: Disqus Commenting selected
209
 
210
  == Changelog ==
 
 
 
 
 
 
211
  = 7.11.1 =
212
  * [Bugfix] Facebook and Google+ login were not working in some cases when Vkontakte login was not enabled
213
 
@@ -1426,4 +1432,10 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
1426
  * Removed Twitch login temporarily
1427
 
1428
  = 7.11.1 =
1429
- * [Bugfix] Facebook and Google+ login were not working in some cases when Vkontakte login was not enabled
 
 
 
 
 
 
4
  Tags: social login, social share, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media follow, facebook login
5
  Requires at least: 2.5.0
6
  Tested up to: 4.9.4
7
+ Stable tag: 7.11.2
8
  License: GPLv2 or later
9
 
10
  The unique Social Plugin to let you integrate Social Login, Social Share, Social Comments and Social Media follow at your website
208
  8. **Social Commenting**: Disqus Commenting selected
209
 
210
  == Changelog ==
211
+ = 7.11.2 =
212
+ * [Bugfix] "Redirect to same page" option was not working for Google+ and Linkedin
213
+ * [Bugfix] Facebook login was not working with Facebook app's "Strict Mode" enabled
214
+ * [Bugfix] Linkedin login was not working properly in some cases
215
+ * [Improvement] Size of Social login popup was not enough when "Load all Javascript files in single file" option was enabled
216
+
217
  = 7.11.1 =
218
  * [Bugfix] Facebook and Google+ login were not working in some cases when Vkontakte login was not enabled
219
 
1432
  * Removed Twitch login temporarily
1433
 
1434
  = 7.11.1 =
1435
+ * [Bugfix] Facebook and Google+ login were not working in some cases when Vkontakte login was not enabled
1436
+
1437
+ = 7.11.2 =
1438
+ * [Bugfix] "Redirect to same page" option was not working for Google+ and Linkedin
1439
+ * [Bugfix] Facebook login was not working with Facebook app's "Strict Mode" enabled
1440
+ * [Bugfix] Linkedin login was not working properly in some cases
1441
+ * [Improvement] Size of Social login popup was not enough when "Load all Javascript files in single file" option was enabled
super_socializer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Super Socializer
4
  Plugin URI: https://super-socializer-wordpress.heateor.com
5
  Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Media follow and more.
6
- Version: 7.11.1
7
  Author: Team Heateor
8
  Author URI: https://www.heateor.com
9
  Text Domain: super-socializer
@@ -11,7 +11,7 @@ Domain Path: /languages
11
  License: GPL2+
12
  */
13
  defined('ABSPATH') or die("Cheating........Uh!!");
14
- define('THE_CHAMP_SS_VERSION', '7.11.1');
15
 
16
  require 'helper.php';
17
 
@@ -214,7 +214,9 @@ function the_champ_connect(){
214
 
215
  // send request to Xing
216
  if((isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Xing')){
217
- session_start();
 
 
218
  if(!isset($_GET['oauth_token']) && isset($_SESSION['OAUTH_ACCESS_TOKEN'])){
219
  Unset($_SESSION['OAUTH_ACCESS_TOKEN']);
220
  }
@@ -269,10 +271,19 @@ function the_champ_connect(){
269
  $linkedinScope = 'r_basicprofile r_emailaddress';
270
  $linkedinClient = new oauth_client_class;
271
 
 
 
 
 
 
 
 
 
 
272
  $linkedinClient->debug = false;
273
  $linkedinClient->debug_http = true;
274
  $linkedinClient->server = 'LinkedIn2';
275
- $linkedinClient->redirect_uri = site_url() . '?SuperSocializerAuth=Linkedin';
276
 
277
  $linkedinClient->client_id = $theChampLoginOptions['li_key'];
278
  $application_line = __LINE__;
@@ -320,7 +331,9 @@ function the_champ_connect(){
320
  }
321
  if(isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Facebook'){
322
  if(isset($theChampLoginOptions['fb_key']) && $theChampLoginOptions['fb_key'] != '' && isset($theChampLoginOptions['fb_secret']) && $theChampLoginOptions['fb_secret'] != ''){
323
- session_start();
 
 
324
  require 'library/Facebook/autoload.php';
325
  $facebook = new Facebook\Facebook([
326
  'app_id' => $theChampLoginOptions['fb_key'],
@@ -332,12 +345,12 @@ function the_champ_connect(){
332
 
333
  $permissions = ['email']; // Optional permissions
334
  if(!isset($_GET['code'])){
335
- $loginUrl = $helper->getLoginUrl(site_url() . '/?SuperSocializerAuth=Facebook&super_socializer_redirect_to=' . esc_url(trim($_GET['super_socializer_redirect_to'])) . (isset($_GET['heateorMSEnabled']) ? '&heateorMSEnabled=1' : ''), $permissions);
336
  wp_redirect($loginUrl);
337
  die;
338
  }else{
339
  try{
340
- $accessToken = $helper->getAccessToken(site_url() . '/?SuperSocializerAuth=Facebook&super_socializer_redirect_to=' . esc_url(trim($_GET['super_socializer_redirect_to'])) . (isset($_GET['heateorMSEnabled']) ? '&heateorMSEnabled=1' : ''));
341
  }catch(Facebook\Exceptions\FacebookResponseException $e){
342
  }catch(Facebook\Exceptions\FacebookSDKException $e){
343
  _e('Facebook SDK returned an error: ', 'super-socializer');
@@ -367,7 +380,7 @@ function the_champ_connect(){
367
  if(isset($_GET['heateorMSEnabled'])){
368
  $profileData['mc_subscribe'] = 1;
369
  }
370
- $facebookRedirectUrl = esc_url(trim($_GET['super_socializer_redirect_to']));
371
  $response = the_champ_user_auth($profileData, 'facebook', $facebookRedirectUrl);
372
  if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
373
  $redirectTo = the_champ_get_login_redirection_url($facebookRedirectUrl, true);
@@ -386,7 +399,7 @@ function the_champ_connect(){
386
  }
387
  }
388
  }
389
- if((isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Google') || (isset($_GET['state']) && $_GET['state'] == 'Google')){
390
  if(isset($theChampLoginOptions['google_key']) && $theChampLoginOptions['google_key'] != '' && isset($theChampLoginOptions['google_secret']) && $theChampLoginOptions['google_secret'] != ''){
391
  require_once 'library/Google/Config.php';
392
  require_once 'library/Google/Service.php';
@@ -416,7 +429,7 @@ function the_champ_connect(){
416
  $googleClient->setScopes(array('https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/userinfo.email'));
417
  //Send Client Request
418
  $objOAuthService = new Google_Service_Oauth2($googleClient);
419
- $gpAuthUrl = $googleClient->createAuthUrl() . '&state=Google&super_socializer_redirect_to=' . esc_url(trim($_GET['super_socializer_redirect_to']));
420
  if(!isset($_GET['code']) && !isset($_GET['session_state'])){
421
  wp_redirect($gpAuthUrl);
422
  die;
@@ -434,7 +447,7 @@ function the_champ_connect(){
434
  if(isset($_GET['heateorMSEnabled'])){
435
  $profileData['mc_subscribe'] = 1;
436
  }
437
- $googleRedirectUrl = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
438
  $response = the_champ_user_auth($profileData, 'google', $googleRedirectUrl);
439
  if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
440
  $redirectTo = the_champ_get_login_redirection_url($googleRedirectUrl, true);
@@ -452,7 +465,7 @@ function the_champ_connect(){
452
  }
453
  }
454
  // Vkontakte
455
- if(isset($_GET['code'])){
456
  global $heateorSsVkontakte;
457
  if(isset($heateorSsVkontakte)){
458
  $heateorSsVkontakte->authenticate($_GET['code']);
@@ -1529,7 +1542,7 @@ function the_champ_addon_update_notification(){
1529
  </script>
1530
  <div id="heateor_ss_linkedin_redirection_notification" class="error">
1531
  <h3>Super Socializer</h3>
1532
- <p><?php echo sprintf(__('Add %s in "Authorized Redirect URLs" option in your Linkedin app settings for Linkedin login to work. For more details, check step 4 <a href="%s" target="_blank">here</a>', 'super-socializer'), site_url() . '?SuperSocializerAuth=Linkedin', 'http://support.heateor.com/how-to-get-linkedin-api-key/'); ?><input type="button" onclick="heateorSsLinkedinRedirectionNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e('Okay', 'super-socializer') ?>" /></p>
1533
  </div>
1534
  <?php
1535
  }
3
  Plugin Name: Super Socializer
4
  Plugin URI: https://super-socializer-wordpress.heateor.com
5
  Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Media follow and more.
6
+ Version: 7.11.2
7
  Author: Team Heateor
8
  Author URI: https://www.heateor.com
9
  Text Domain: super-socializer
11
  License: GPL2+
12
  */
13
  defined('ABSPATH') or die("Cheating........Uh!!");
14
+ define('THE_CHAMP_SS_VERSION', '7.11.2');
15
 
16
  require 'helper.php';
17
 
214
 
215
  // send request to Xing
216
  if((isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Xing')){
217
+ if(function_exists('session_start')){
218
+ session_start();
219
+ }
220
  if(!isset($_GET['oauth_token']) && isset($_SESSION['OAUTH_ACCESS_TOKEN'])){
221
  Unset($_SESSION['OAUTH_ACCESS_TOKEN']);
222
  }
271
  $linkedinScope = 'r_basicprofile r_emailaddress';
272
  $linkedinClient = new oauth_client_class;
273
 
274
+ if(!isset($_GET['session_cleared']) && !isset($_GET['code']) && !isset($_GET['state'])){
275
+ if(function_exists('session_start')){
276
+ session_start();
277
+ session_unset();
278
+ session_destroy();
279
+ }
280
+ wp_redirect(site_url() . '?SuperSocializerAuth=Linkedin&super_socializer_redirect_to=' . esc_url(trim($_GET['super_socializer_redirect_to'])) . '&session_cleared=1');
281
+ die;
282
+ }
283
  $linkedinClient->debug = false;
284
  $linkedinClient->debug_http = true;
285
  $linkedinClient->server = 'LinkedIn2';
286
+ $linkedinClient->redirect_uri = site_url() . '?SuperSocializerAuth=Linkedin&super_socializer_redirect_to=' . esc_url(trim($_GET['super_socializer_redirect_to']));
287
 
288
  $linkedinClient->client_id = $theChampLoginOptions['li_key'];
289
  $application_line = __LINE__;
331
  }
332
  if(isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Facebook'){
333
  if(isset($theChampLoginOptions['fb_key']) && $theChampLoginOptions['fb_key'] != '' && isset($theChampLoginOptions['fb_secret']) && $theChampLoginOptions['fb_secret'] != ''){
334
+ if(function_exists('session_start')){
335
+ session_start();
336
+ }
337
  require 'library/Facebook/autoload.php';
338
  $facebook = new Facebook\Facebook([
339
  'app_id' => $theChampLoginOptions['fb_key'],
345
 
346
  $permissions = ['email']; // Optional permissions
347
  if(!isset($_GET['code'])){
348
+ $loginUrl = $helper->getLoginUrl(site_url() . '/?SuperSocializerAuth=Facebook', $permissions);
349
  wp_redirect($loginUrl);
350
  die;
351
  }else{
352
  try{
353
+ $accessToken = $helper->getAccessToken(site_url() . '/?SuperSocializerAuth=Facebook');
354
  }catch(Facebook\Exceptions\FacebookResponseException $e){
355
  }catch(Facebook\Exceptions\FacebookSDKException $e){
356
  _e('Facebook SDK returned an error: ', 'super-socializer');
380
  if(isset($_GET['heateorMSEnabled'])){
381
  $profileData['mc_subscribe'] = 1;
382
  }
383
+ $facebookRedirectUrl = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
384
  $response = the_champ_user_auth($profileData, 'facebook', $facebookRedirectUrl);
385
  if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
386
  $redirectTo = the_champ_get_login_redirection_url($facebookRedirectUrl, true);
399
  }
400
  }
401
  }
402
+ if((isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Google') || isset($_GET['state'])){
403
  if(isset($theChampLoginOptions['google_key']) && $theChampLoginOptions['google_key'] != '' && isset($theChampLoginOptions['google_secret']) && $theChampLoginOptions['google_secret'] != ''){
404
  require_once 'library/Google/Config.php';
405
  require_once 'library/Google/Service.php';
429
  $googleClient->setScopes(array('https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/userinfo.email'));
430
  //Send Client Request
431
  $objOAuthService = new Google_Service_Oauth2($googleClient);
432
+ $gpAuthUrl = $googleClient->createAuthUrl() . '&state=' . (isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : '');
433
  if(!isset($_GET['code']) && !isset($_GET['session_state'])){
434
  wp_redirect($gpAuthUrl);
435
  die;
447
  if(isset($_GET['heateorMSEnabled'])){
448
  $profileData['mc_subscribe'] = 1;
449
  }
450
+ $googleRedirectUrl = isset($_GET['state']) ? esc_url(trim($_GET['state'])) : home_url();
451
  $response = the_champ_user_auth($profileData, 'google', $googleRedirectUrl);
452
  if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
453
  $redirectTo = the_champ_get_login_redirection_url($googleRedirectUrl, true);
465
  }
466
  }
467
  // Vkontakte
468
+ if(isset($_GET['code']) && !isset($_GET['SuperSocializerAuth'])){
469
  global $heateorSsVkontakte;
470
  if(isset($heateorSsVkontakte)){
471
  $heateorSsVkontakte->authenticate($_GET['code']);
1542
  </script>
1543
  <div id="heateor_ss_linkedin_redirection_notification" class="error">
1544
  <h3>Super Socializer</h3>
1545
+ <p><?php echo sprintf(__('Add %s in "Authorized Redirect URLs" option in your Linkedin app settings for Linkedin login to work. For more details, check step 4 <a href="%s" target="_blank">here</a>', 'super-socializer'), site_url(), 'http://support.heateor.com/how-to-get-linkedin-api-key/'); ?><input type="button" onclick="heateorSsLinkedinRedirectionNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e('Okay', 'super-socializer') ?>" /></p>
1546
  </div>
1547
  <?php
1548
  }