Version Description
- Fix for issue during update profile.
- Fixed minor database warnings
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 6.6.8 |
Comparing to | |
See all releases |
Code changes from version 6.6.7 to 6.6.8
- class-mo-openid-login-widget.php +2 -2
- miniorange_openid_sso_settings.php +9 -6
- readme.txt +9 -1
class-mo-openid-login-widget.php
CHANGED
@@ -928,8 +928,8 @@ if(mo_openid_is_customer_registered()) {
|
|
928 |
|
929 |
function mo_openid_login_validate(){
|
930 |
|
931 |
-
if(isset($_POST['action']) && isset($_POST['user_id'])){
|
932 |
-
|
933 |
global $wpdb;
|
934 |
$id = $_POST['user_id']; $metakey1 = 'first_name'; $metakey2 = 'last_name'; $metakey3 = 'moopenid_user_avatar'; $metakey4 = 'moopenid_user_profile_url';
|
935 |
$wpdb->query($wpdb->prepare('DELETE from '.$wpdb->prefix.'usermeta where user_id = %d and meta_key = %s or meta_key = %s or meta_key = %s or meta_key = %s ',$id,$metakey1,$metakey2,$metakey3,$metakey4));
|
928 |
|
929 |
function mo_openid_login_validate(){
|
930 |
|
931 |
+
if((isset($_POST['action'])) && (strpos($_POST['action'], 'delete_social_profile_data') !== false) && isset($_POST['user_id'])){
|
932 |
+
// delete first name, last name, user_url and profile_url from usermeta
|
933 |
global $wpdb;
|
934 |
$id = $_POST['user_id']; $metakey1 = 'first_name'; $metakey2 = 'last_name'; $metakey3 = 'moopenid_user_avatar'; $metakey4 = 'moopenid_user_profile_url';
|
935 |
$wpdb->query($wpdb->prepare('DELETE from '.$wpdb->prefix.'usermeta where user_id = %d and meta_key = %s or meta_key = %s or meta_key = %s or meta_key = %s ',$id,$metakey1,$metakey2,$metakey3,$metakey4));
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 6.6.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
@@ -15,7 +15,7 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
|
|
15 |
require('class-mo-openid-sso-customer.php');
|
16 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
17 |
require('class-mo-openid-social-comment.php');
|
18 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '6.6.
|
19 |
|
20 |
class Miniorange_OpenID_SSO {
|
21 |
|
@@ -274,14 +274,16 @@ class Miniorange_OpenID_SSO {
|
|
274 |
function mo_openid_plugin_update(){
|
275 |
global $wpdb;
|
276 |
$table_name = $wpdb->prefix . 'mo_openid_linked_user';
|
277 |
-
$column_name = 'timestamp';
|
278 |
$charset_collate = $wpdb->get_charset_collate();
|
279 |
|
280 |
-
$
|
281 |
-
|
|
|
|
|
|
|
282 |
|
283 |
// if table mo_openid_linked_user doesn't exist or the 'timestamp' column doesn't exist
|
284 |
-
if($wpdb->get_var("show tables like '$table_name'") != $table_name || empty($
|
285 |
$sql = "CREATE TABLE $table_name (
|
286 |
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
287 |
linked_social_app varchar(55) NOT NULL,
|
@@ -299,6 +301,7 @@ class Miniorange_OpenID_SSO {
|
|
299 |
FROM information_schema.COLUMNS
|
300 |
WHERE
|
301 |
TABLE_NAME = '$wpdb->users'
|
|
|
302 |
AND COLUMN_NAME = 'identifier'");
|
303 |
|
304 |
if(strcasecmp( $identifier, "identifier") == 0 ){
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 6.6.8
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
15 |
require('class-mo-openid-sso-customer.php');
|
16 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
17 |
require('class-mo-openid-social-comment.php');
|
18 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '6.6.8');
|
19 |
|
20 |
class Miniorange_OpenID_SSO {
|
21 |
|
274 |
function mo_openid_plugin_update(){
|
275 |
global $wpdb;
|
276 |
$table_name = $wpdb->prefix . 'mo_openid_linked_user';
|
|
|
277 |
$charset_collate = $wpdb->get_charset_collate();
|
278 |
|
279 |
+
$time = $wpdb->get_var("SELECT COLUMN_NAME
|
280 |
+
FROM information_schema.COLUMNS
|
281 |
+
WHERE
|
282 |
+
TABLE_SCHEMA='$wpdb->dbname'
|
283 |
+
AND COLUMN_NAME = 'timestamp'");
|
284 |
|
285 |
// if table mo_openid_linked_user doesn't exist or the 'timestamp' column doesn't exist
|
286 |
+
if($wpdb->get_var("show tables like '$table_name'") != $table_name || empty($time) ) {
|
287 |
$sql = "CREATE TABLE $table_name (
|
288 |
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
289 |
linked_social_app varchar(55) NOT NULL,
|
301 |
FROM information_schema.COLUMNS
|
302 |
WHERE
|
303 |
TABLE_NAME = '$wpdb->users'
|
304 |
+
AND TABLE_SCHEMA='$wpdb->dbname'
|
305 |
AND COLUMN_NAME = 'identifier'");
|
306 |
|
307 |
if(strcasecmp( $identifier, "identifier") == 0 ){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
|
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.6
|
7 |
-
Stable tag: 6.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -166,6 +166,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
166 |
|
167 |
|
168 |
== Changelog ==
|
|
|
|
|
|
|
|
|
169 |
= 6.6.7 =
|
170 |
* Fixed security warning in Chrome related to GDPR.
|
171 |
|
@@ -538,6 +542,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
538 |
* First version of Social Login, Social Sharing plugin.
|
539 |
|
540 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
541 |
= 6.6.7 =
|
542 |
* Fixed security warning in Chrome related to GDPR.
|
543 |
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.6
|
7 |
+
Stable tag: 6.6.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
166 |
|
167 |
|
168 |
== Changelog ==
|
169 |
+
= 6.6.8 =
|
170 |
+
* Fix for issue during update profile.
|
171 |
+
* Fixed minor database warnings
|
172 |
+
|
173 |
= 6.6.7 =
|
174 |
* Fixed security warning in Chrome related to GDPR.
|
175 |
|
542 |
* First version of Social Login, Social Sharing plugin.
|
543 |
|
544 |
== Upgrade Notice ==
|
545 |
+
= 6.6.8 =
|
546 |
+
* Fix for issue during update profile.
|
547 |
+
* Fixed minor database warnings.
|
548 |
+
|
549 |
= 6.6.7 =
|
550 |
* Fixed security warning in Chrome related to GDPR.
|
551 |
|