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

Version Description

  • [Bugfix] Facebook and Google+ login were not working in some cases when Vkontakte login was not 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.1
Comparing to
See all releases

Code changes from version 7.11 to 7.11.1

Files changed (2) hide show
  1. readme.txt +8 -2
  2. super_socializer.php +41 -38
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
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,9 @@ 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 =
212
  * [Security] Social Login is now more secure based on PHP OAuth instead of Javascript SDK
213
  * [Improvement] Vkontakte social login now fetches user's email address too
@@ -1420,4 +1423,7 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
1420
  = 7.11 =
1421
  * [Security] Social Login is now more secure based on PHP OAuth instead of Javascript SDK
1422
  * [Improvement] Vkontakte social login now fetches user's email address too
1423
- * Removed Twitch login temporarily
 
 
 
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
  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
+
214
  = 7.11 =
215
  * [Security] Social Login is now more secure based on PHP OAuth instead of Javascript SDK
216
  * [Improvement] Vkontakte social login now fetches user's email address too
1423
  = 7.11 =
1424
  * [Security] Social Login is now more secure based on PHP OAuth instead of Javascript SDK
1425
  * [Improvement] Vkontakte social login now fetches user's email address too
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
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
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');
15
 
16
  require 'helper.php';
17
 
@@ -386,42 +386,6 @@ function the_champ_connect(){
386
  }
387
  }
388
  }
389
- // Vkontakte
390
- if(isset($_GET['code'])){
391
- global $heateorSsVkontakte;
392
- $heateorSsVkontakte->authenticate($_GET['code']);
393
- $userId = $heateorSsVkontakte->getUserId();
394
- $email = $heateorSsVkontakte->getUserEmail();
395
- if($userId){
396
- $users = $heateorSsVkontakte->api('users.get', [
397
- 'user_id' => $userId,
398
- 'fields' => ['first_name','last_name','nickname','screen_name','photo_rec','photo_big']
399
- ]);
400
- if(isset($users[0]) && isset($users[0]["id"]) && $users[0]["id"]){
401
- $profileData = the_champ_sanitize_profile_data($users[0], 'vkontakte');
402
- if($email){
403
- $profileData['email'] = sanitize_email($email);
404
- }
405
- if(isset($_GET['heateorMSEnabled'])){
406
- $profileData['mc_subscribe'] = 1;
407
- }
408
- $vkontakteRedirectUrl = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
409
- $response = the_champ_user_auth($profileData, 'vkontakte', $vkontakteRedirectUrl);
410
- if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
411
- $redirectTo = the_champ_get_login_redirection_url($vkontakteRedirectUrl, true);
412
- }elseif(isset($response['message']) && $response['message'] == 'linked'){
413
- $redirectTo = $vkontakteRedirectUrl . (strpos($vkontakteRedirectUrl, '?') !== false ? '&' : '?') . 'linked=1';
414
- }elseif(isset($response['message']) && $response['message'] == 'not linked'){
415
- $redirectTo = $vkontakteRedirectUrl . (strpos($vkontakteRedirectUrl, '?') !== false ? '&' : '?') . 'linked=0';
416
- }elseif(isset($response['url']) && $response['url'] != ''){
417
- $redirectTo = $response['url'];
418
- }else{
419
- $redirectTo = the_champ_get_login_redirection_url($vkontakteRedirectUrl);
420
- }
421
- the_champ_close_login_popup($redirectTo);
422
- }
423
- }
424
- }
425
  if((isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Google') || (isset($_GET['state']) && $_GET['state'] == 'Google')){
426
  if(isset($theChampLoginOptions['google_key']) && $theChampLoginOptions['google_key'] != '' && isset($theChampLoginOptions['google_secret']) && $theChampLoginOptions['google_secret'] != ''){
427
  require_once 'library/Google/Config.php';
@@ -487,6 +451,45 @@ function the_champ_connect(){
487
  }
488
  }
489
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  // send request to twitter
491
  if(isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Twitter' && !isset($_REQUEST['oauth_token'])){
492
  if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){
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
  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
 
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';
451
  }
452
  }
453
  }
454
+ // Vkontakte
455
+ if(isset($_GET['code'])){
456
+ global $heateorSsVkontakte;
457
+ if(isset($heateorSsVkontakte)){
458
+ $heateorSsVkontakte->authenticate($_GET['code']);
459
+ $userId = $heateorSsVkontakte->getUserId();
460
+ $email = $heateorSsVkontakte->getUserEmail();
461
+ if($userId){
462
+ $users = $heateorSsVkontakte->api('users.get', [
463
+ 'user_id' => $userId,
464
+ 'fields' => ['first_name','last_name','nickname','screen_name','photo_rec','photo_big']
465
+ ]);
466
+ if(isset($users[0]) && isset($users[0]["id"]) && $users[0]["id"]){
467
+ $profileData = the_champ_sanitize_profile_data($users[0], 'vkontakte');
468
+ $profileData['email'] = '';
469
+ if($email){
470
+ $profileData['email'] = sanitize_email($email);
471
+ }
472
+ if(isset($_GET['heateorMSEnabled'])){
473
+ $profileData['mc_subscribe'] = 1;
474
+ }
475
+ $vkontakteRedirectUrl = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
476
+ $response = the_champ_user_auth($profileData, 'vkontakte', $vkontakteRedirectUrl);
477
+ if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
478
+ $redirectTo = the_champ_get_login_redirection_url($vkontakteRedirectUrl, true);
479
+ }elseif(isset($response['message']) && $response['message'] == 'linked'){
480
+ $redirectTo = $vkontakteRedirectUrl . (strpos($vkontakteRedirectUrl, '?') !== false ? '&' : '?') . 'linked=1';
481
+ }elseif(isset($response['message']) && $response['message'] == 'not linked'){
482
+ $redirectTo = $vkontakteRedirectUrl . (strpos($vkontakteRedirectUrl, '?') !== false ? '&' : '?') . 'linked=0';
483
+ }elseif(isset($response['url']) && $response['url'] != ''){
484
+ $redirectTo = $response['url'];
485
+ }else{
486
+ $redirectTo = the_champ_get_login_redirection_url($vkontakteRedirectUrl);
487
+ }
488
+ the_champ_close_login_popup($redirectTo);
489
+ }
490
+ }
491
+ }
492
+ }
493
  // send request to twitter
494
  if(isset($_GET['SuperSocializerAuth']) && sanitize_text_field($_GET['SuperSocializerAuth']) == 'Twitter' && !isset($_REQUEST['oauth_token'])){
495
  if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){