Version Description
- Done the bug fixing for the facebook login if user don't allow to access email address.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- accesspress-social-login-lite.php +2 -2
- inc/frontend/login_check.php +7 -1
- readme.txt +4 -1
accesspress-social-login-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
5 |
Description: A plugin to add various social logins to a site.
|
6 |
-
version: 3.1.
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: accesspress-social-login-lite
|
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
//Declearation of the necessary constants for plugin
|
14 |
if( !defined( 'APSL_VERSION' ) ) {
|
15 |
-
define( 'APSL_VERSION', '3.1.
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
3 |
Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
5 |
Description: A plugin to add various social logins to a site.
|
6 |
+
version: 3.1.2
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: accesspress-social-login-lite
|
12 |
*/
|
13 |
//Declearation of the necessary constants for plugin
|
14 |
if( !defined( 'APSL_VERSION' ) ) {
|
15 |
+
define( 'APSL_VERSION', '3.1.2' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
inc/frontend/login_check.php
CHANGED
@@ -177,7 +177,12 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
177 |
$return_user_details->deutype = 'facebook';
|
178 |
$return_user_details->first_name = $user_profile['first_name'];
|
179 |
$return_user_details->last_name = $user_profile['last_name'];
|
180 |
-
$
|
|
|
|
|
|
|
|
|
|
|
181 |
$return_user_details->username = strtolower( $user_profile['first_name'] );
|
182 |
$return_user_details->gender = $user_profile['gender'];
|
183 |
$return_user_details->url = $user_profile['link'];
|
@@ -484,6 +489,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
484 |
|
485 |
if( !empty( $user ) ) {
|
486 |
if( !empty( $user->emails ) ) {
|
|
|
487 |
$response->email = $user->emails[0]->value;
|
488 |
$response->username = strtolower($user->name->givenName);
|
489 |
$response->first_name = $user->name->givenName;
|
177 |
$return_user_details->deutype = 'facebook';
|
178 |
$return_user_details->first_name = $user_profile['first_name'];
|
179 |
$return_user_details->last_name = $user_profile['last_name'];
|
180 |
+
if(isset($user_profile['email']) || $user_profile['email'] != ''){
|
181 |
+
$user_email = $user_profile['email'];
|
182 |
+
}else{
|
183 |
+
$user_email = $user_profile['id'].'@facebook.com';
|
184 |
+
}
|
185 |
+
$return_user_details->email = $user_email;
|
186 |
$return_user_details->username = strtolower( $user_profile['first_name'] );
|
187 |
$return_user_details->gender = $user_profile['gender'];
|
188 |
$return_user_details->url = $user_profile['link'];
|
489 |
|
490 |
if( !empty( $user ) ) {
|
491 |
if( !empty( $user->emails ) ) {
|
492 |
+
|
493 |
$response->email = $user->emails[0]->value;
|
494 |
$response->username = strtolower($user->name->givenName);
|
495 |
$response->first_name = $user->name->givenName;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -133,6 +133,9 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
|
|
133 |
4. Backend Other settings Section.
|
134 |
|
135 |
== Changelog ==
|
|
|
|
|
|
|
136 |
= 3.1.1 =
|
137 |
* Done small bug fixings for twitter user fields.
|
138 |
* Addition of the social login in the woocommerce login form.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 3.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
133 |
4. Backend Other settings Section.
|
134 |
|
135 |
== Changelog ==
|
136 |
+
= 3.1.2 =
|
137 |
+
* Done the bug fixing for the facebook login if user don't allow to access email address.
|
138 |
+
|
139 |
= 3.1.1 =
|
140 |
* Done small bug fixings for twitter user fields.
|
141 |
* Addition of the social login in the woocommerce login form.
|