Version Description
[25 September 2019] = * [Bugfix] Twitch login stopped working * [Security fix] Twitch login was not checking if user's email has been verified on Twitch
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 7.12.35 |
Comparing to | |
See all releases |
Code changes from version 7.12.34 to 7.12.35
- library/Twitch/twitch.php +5 -5
- readme.txt +12 -4
- super_socializer.php +3 -3
library/Twitch/twitch.php
CHANGED
@@ -94,6 +94,7 @@ class TwitchTV {
|
|
94 |
curl_setopt($ch, CURLOPT_URL, $this->base_url);
|
95 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
96 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
|
|
97 |
'Authorization: OAuth ' . $access_token
|
98 |
));
|
99 |
$output = curl_exec($ch);
|
@@ -179,16 +180,15 @@ class TwitchTV {
|
|
179 |
* @param string $profile_data
|
180 |
* @return array Array of data that includes the display name, Status, Chat links, game that the stream is playing and the banner
|
181 |
*/
|
182 |
-
#modified
|
183 |
public function get_userid($username, $profile_data = false, $access_token) {
|
184 |
//initiate connection to the twitch.tv servers
|
185 |
$curl = curl_init('https://api.twitch.tv/kraken/user');
|
186 |
-
|
187 |
'Accept: application/vnd.twitchtv.v5+json',
|
188 |
'Authorization: OAuth ' . $access_token,
|
189 |
-
|
190 |
));
|
191 |
-
|
192 |
$result = curl_exec($curl);
|
193 |
//makes sure that the cURL was excuted if not it generates the error stating that it didn't succeed.
|
194 |
if (!$result) {
|
@@ -198,7 +198,7 @@ class TwitchTV {
|
|
198 |
if (!empty($username)) {
|
199 |
$return = json_decode($result, true);
|
200 |
if ($profile_data) {
|
201 |
-
|
202 |
}else{
|
203 |
$user_id = $return['_id'];
|
204 |
return $user_id;
|
94 |
curl_setopt($ch, CURLOPT_URL, $this->base_url);
|
95 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
96 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
97 |
+
'Accept: application/vnd.twitchtv.v5+json',
|
98 |
'Authorization: OAuth ' . $access_token
|
99 |
));
|
100 |
$output = curl_exec($ch);
|
180 |
* @param string $profile_data
|
181 |
* @return array Array of data that includes the display name, Status, Chat links, game that the stream is playing and the banner
|
182 |
*/
|
|
|
183 |
public function get_userid($username, $profile_data = false, $access_token) {
|
184 |
//initiate connection to the twitch.tv servers
|
185 |
$curl = curl_init('https://api.twitch.tv/kraken/user');
|
186 |
+
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
|
187 |
'Accept: application/vnd.twitchtv.v5+json',
|
188 |
'Authorization: OAuth ' . $access_token,
|
189 |
+
'Client-ID: ' . $this->client_id
|
190 |
));
|
191 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
192 |
$result = curl_exec($curl);
|
193 |
//makes sure that the cURL was excuted if not it generates the error stating that it didn't succeed.
|
194 |
if (!$result) {
|
198 |
if (!empty($username)) {
|
199 |
$return = json_decode($result, true);
|
200 |
if ($profile_data) {
|
201 |
+
return $return;
|
202 |
}else{
|
203 |
$user_id = $return['_id'];
|
204 |
return $user_id;
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WordPress Social Share, Social Login and Social Comments Plugin - Super Socializer ===
|
2 |
-
Contributors: Heateor, the_champ, Hungarian Translator: László Tavaszi http://kerekmese.hu, Chinese Translator: CalmSmile calmsmile.org, Portuguese Translator: Paulo Purkyt https://www.linkedin.com/in/ppurkyt, Italian Translator: FG3D (Freedom's Gate) https://fg3d.net, Spanish translator: Ignacio Iglesias http://trespies.com, Arabic Translator: http://www.ArabsSM.com, Russian/Ukrainian Translator: Nicholas Lagunov
|
3 |
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, Twitch login
|
5 |
Requires at least: 2.5.0
|
6 |
-
Tested up to: 5.2.
|
7 |
-
Stable tag: 7.12.
|
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
|
@@ -210,6 +210,10 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
|
|
210 |
8. **Social Commenting**: Disqus Commenting selected
|
211 |
|
212 |
== Changelog ==
|
|
|
|
|
|
|
|
|
213 |
= 7.12.34 [30 August 2019] =
|
214 |
* [Bugfix] Using Twitch API v5 instead of v3, as it's going to shutdown
|
215 |
* [Improvement] Twitch login is now saving users' email address too along with other profile details
|
@@ -1952,4 +1956,8 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
|
|
1952 |
= 7.12.34 [30 August 2019] =
|
1953 |
* [Bugfix] Using Twitch API v5 instead of v3, as it's going to shutdown
|
1954 |
* [Improvement] Twitch login is now saving users' email address too along with other profile details
|
1955 |
-
* [Improvement] Admin UI improvement
|
|
|
|
|
|
|
|
1 |
=== WordPress Social Share, Social Login and Social Comments Plugin - Super Socializer ===
|
2 |
+
Contributors: Heateor, farhan8heateor, jatin8heateor, the_champ, Hungarian Translator: László Tavaszi http://kerekmese.hu, Chinese Translator: CalmSmile calmsmile.org, Portuguese Translator: Paulo Purkyt https://www.linkedin.com/in/ppurkyt, Italian Translator: FG3D (Freedom's Gate) https://fg3d.net, Spanish translator: Ignacio Iglesias http://trespies.com, Arabic Translator: http://www.ArabsSM.com, Russian/Ukrainian Translator: Nicholas Lagunov
|
3 |
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, Twitch login
|
5 |
Requires at least: 2.5.0
|
6 |
+
Tested up to: 5.2.3
|
7 |
+
Stable tag: 7.12.35
|
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
|
210 |
8. **Social Commenting**: Disqus Commenting selected
|
211 |
|
212 |
== Changelog ==
|
213 |
+
= 7.12.35 [25 September 2019] =
|
214 |
+
* [Bugfix] Twitch login stopped working
|
215 |
+
* [Security fix] Twitch login was not checking if user's email has been verified on Twitch
|
216 |
+
|
217 |
= 7.12.34 [30 August 2019] =
|
218 |
* [Bugfix] Using Twitch API v5 instead of v3, as it's going to shutdown
|
219 |
* [Improvement] Twitch login is now saving users' email address too along with other profile details
|
1956 |
= 7.12.34 [30 August 2019] =
|
1957 |
* [Bugfix] Using Twitch API v5 instead of v3, as it's going to shutdown
|
1958 |
* [Improvement] Twitch login is now saving users' email address too along with other profile details
|
1959 |
+
* [Improvement] Admin UI improvement
|
1960 |
+
|
1961 |
+
= 7.12.35 [25 September 2019] =
|
1962 |
+
* [Bugfix] Twitch login stopped working
|
1963 |
+
* [Security fix] Twitch login was not checking if user's email has been verified on Twitch
|
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.12.
|
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.12.
|
15 |
|
16 |
require 'helper.php';
|
17 |
|
@@ -368,7 +368,7 @@ function the_champ_connect(){
|
|
368 |
$username = $twitchAuth->authenticated_user($accessToken);
|
369 |
if(isset($username)){
|
370 |
$profileData = $twitchAuth->get_userid($username, true, $accessToken);
|
371 |
-
if(is_array($profileData) && isset($profileData['_id'])){
|
372 |
$profileData = the_champ_sanitize_profile_data($profileData, 'twitch');
|
373 |
if(isset($_GET['heateorMSEnabled'])){
|
374 |
$profileData['mc_subscribe'] = 1;
|
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.12.35
|
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.12.35');
|
15 |
|
16 |
require 'helper.php';
|
17 |
|
368 |
$username = $twitchAuth->authenticated_user($accessToken);
|
369 |
if(isset($username)){
|
370 |
$profileData = $twitchAuth->get_userid($username, true, $accessToken);
|
371 |
+
if(is_array($profileData) && isset($profileData['_id']) && isset($profileData['email_verified']) && $profileData['email_verified'] === true){
|
372 |
$profileData = the_champ_sanitize_profile_data($profileData, 'twitch');
|
373 |
if(isset($_GET['heateorMSEnabled'])){
|
374 |
$profileData['mc_subscribe'] = 1;
|