Version Description
- Issue resolved for Twitter Social Login.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.4.0 |
Comparing to | |
See all releases |
Code changes from version 3.3.9 to 3.4.0
- accesspress-social-login-lite.php +2 -2
- facebook/Http/GraphRawResponse.php +1 -1
- inc/backend/main-page.php +2 -1
- inc/frontend/login_check.php +2 -2
- 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.
|
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.
|
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.4.0
|
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.4.0' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
facebook/Http/GraphRawResponse.php
CHANGED
@@ -104,7 +104,7 @@ class GraphRawResponse
|
|
104 |
*/
|
105 |
public function setHttpResponseCodeFromHeader($rawResponseHeader)
|
106 |
{
|
107 |
-
preg_match('
|
108 |
$this->httpResponseCode = (int)$match[1];
|
109 |
}
|
110 |
|
104 |
*/
|
105 |
public function setHttpResponseCodeFromHeader($rawResponseHeader)
|
106 |
{
|
107 |
+
preg_match('/HTTP\/\d(?:\.\d)?\s+(\d+)\s+/', $rawResponseHeader, $match);
|
108 |
$this->httpResponseCode = (int)$match[1];
|
109 |
}
|
110 |
|
inc/backend/main-page.php
CHANGED
@@ -171,8 +171,9 @@
|
|
171 |
<li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
|
172 |
<li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
|
173 |
<li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
174 |
-
<li>Callback URL: <input type='text' value='<?php echo site_url(); ?>/wp-login.php
|
175 |
<li><strong>Note: </strong>To get the user's email address please go to app's permission tab and in additional Permissions there you will find a checkbox to request for user email address. Please enable it. To enable it you need to enter privacy policy url and terms of service url. <br /> If you have enabled the <strong>callback locking</strong> please use the Callback URL as given above.</li>
|
|
|
176 |
</ul>
|
177 |
|
178 |
</div>
|
171 |
<li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
|
172 |
<li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
|
173 |
<li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
174 |
+
<li>Callback URL: <input type='text' value='<?php echo site_url(); ?>/wp-login.php' readonly='readonly'/></li>
|
175 |
<li><strong>Note: </strong>To get the user's email address please go to app's permission tab and in additional Permissions there you will find a checkbox to request for user email address. Please enable it. To enable it you need to enter privacy policy url and terms of service url. <br /> If you have enabled the <strong>callback locking</strong> please use the Callback URL as given above.</li>
|
176 |
+
<li><strong>Note: </strong> Since version: 3.4.0 of our plugin, please use mew <strong> Callback URL </strong> </li> for the twitter app. Because of some recent changes in twitter API.
|
177 |
</ul>
|
178 |
|
179 |
</div>
|
inc/frontend/login_check.php
CHANGED
@@ -203,7 +203,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
203 |
$return_user_details->email = $user_email;
|
204 |
$return_user_details->username = ($user_profile['first_name'] !='') ? strtolower( $user_profile['first_name'] ) : $user_email;
|
205 |
$return_user_details->gender = isset($user_profile['gender']) ? $user_profile['gender'] : 'N/A';
|
206 |
-
$return_user_details->url = $user_profile['link'];
|
207 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
208 |
$headers = get_headers( 'https://graph.facebook.com/' . $user_profile['id'] . '/picture?width='.$width.'&height='.$height, 1 );
|
209 |
// just a precaution, check whether the header isset...
|
@@ -818,4 +818,4 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
818 |
|
819 |
} //end of if statement
|
820 |
|
821 |
-
$apsl_login_check = new APSL_Lite_Login_Check_Class();
|
203 |
$return_user_details->email = $user_email;
|
204 |
$return_user_details->username = ($user_profile['first_name'] !='') ? strtolower( $user_profile['first_name'] ) : $user_email;
|
205 |
$return_user_details->gender = isset($user_profile['gender']) ? $user_profile['gender'] : 'N/A';
|
206 |
+
$return_user_details->url = isset($user_profile['link'])?$user_profile['link']:'';
|
207 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
208 |
$headers = get_headers( 'https://graph.facebook.com/' . $user_profile['id'] . '/picture?width='.$width.'&height='.$height, 1 );
|
209 |
// just a precaution, check whether the header isset...
|
818 |
|
819 |
} //end of if statement
|
820 |
|
821 |
+
$apsl_login_check = new APSL_Lite_Login_Check_Class();
|
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: 5.0
|
7 |
-
Stable tag: 3.
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -139,6 +139,9 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
142 |
= 3.3.9 =
|
143 |
* 1 new template available now. Previously: 4 templates. Now: 5 total templates.
|
144 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 3.4.0
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 3.4.0 =
|
143 |
+
* Issue resolved for Twitter Social Login.
|
144 |
+
|
145 |
= 3.3.9 =
|
146 |
* 1 new template available now. Previously: 4 templates. Now: 5 total templates.
|
147 |
|