Social Login WordPress Plugin – AccessPress Social Login Lite - Version 3.0.1

Version Description

  • Done the modifications of the note sections for the google settings.
  • Done bug fixing for the email notifications for admin with blank user details after doing upgrade of the notification function.
  • Done the addition of a hook to display the social login buttons when "Users must be registered and logged in to comment" checked in the discussions settings.
  • Done the addition of login redirect filter.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

accesspress-social-login-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin name: 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.0.0
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.0.0' );
16
  }
17
 
18
  if( !defined( 'APSL_IMAGE_DIR' ) ) {
@@ -58,6 +58,8 @@ if ( !function_exists('wp_new_user_notification') ) {
58
 
59
  global $wpdb, $wp_hasher;
60
  $user = get_userdata( $user_id );
 
 
61
 
62
  // The blogname option is escaped with esc_html on the way into the database in sanitize_option
63
  // we want to reverse this for the plain text arena of emails.
@@ -129,6 +131,7 @@ if( !class_exists( 'APSL_Lite_Class' ) ) {
129
 
130
  if( in_array( "comment_form", $options['apsl_display_options'] ) ) {
131
  add_action( 'comment_form_top', array($this, 'add_social_login_form_to_comment') ); //add the social logins to the comment form
 
132
 
133
  }
134
  }
3
  Plugin name: 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.0.1
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.0.1' );
16
  }
17
 
18
  if( !defined( 'APSL_IMAGE_DIR' ) ) {
58
 
59
  global $wpdb, $wp_hasher;
60
  $user = get_userdata( $user_id );
61
+ if ( empty ( $user ) )
62
+ return;
63
 
64
  // The blogname option is escaped with esc_html on the way into the database in sanitize_option
65
  // we want to reverse this for the plain text arena of emails.
131
 
132
  if( in_array( "comment_form", $options['apsl_display_options'] ) ) {
133
  add_action( 'comment_form_top', array($this, 'add_social_login_form_to_comment') ); //add the social logins to the comment form
134
+ add_action( 'comment_form_must_log_in_after', array($this, 'add_social_login_form_to_comment') ); // add the social login buttons if “Users must be registered and logged in to comment” checked in the discussions settings.
135
 
136
  }
137
  }
inc/backend/main-page.php CHANGED
@@ -194,11 +194,12 @@ $options = get_option( APSL_SETTINGS );
194
  <li>Click on "Create Project" button.</li>
195
  <li>A pop up will appear.</li>
196
  <li>Please enter Project name and click on "Create" button.</li>
197
- <li>Now click on APIs & Auth > Consent screen and fill up the required credentials.</li>
198
- <li>Now click on APIs & Auth > Credentials.</li>
199
- <li>Now click on "Create new Client ID" button and fill up the required credentials.</li>
200
- <li>Get the client ID and client secret.</li>
201
- <li>Now go to APIs > Social APIs > Google+ API and enable it. It is very important to enable it for the google login to work.</li>
 
202
  <li>Rediret uri setup:<br />
203
  Please use <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check' readonly='readonly'/> - for wordpress login page.<br />
204
  Please use <input type='text' value='<?php echo site_url(); ?>/index.php?apsl_login_id=google_check' readonly='readonly'/> - if you have used the shortcode or widget in frontend.
@@ -208,7 +209,7 @@ $options = get_option( APSL_SETTINGS );
208
  </li>
209
  </ul>
210
  </div>
211
- </div>
212
  </div>
213
  <?php
214
  break; ?>
194
  <li>Click on "Create Project" button.</li>
195
  <li>A pop up will appear.</li>
196
  <li>Please enter Project name and click on "Create" button.</li>
197
+ <li>Now go to API Manager.</li>
198
+ <li>In the Social APIs section click on Google+ API and click "Enable API" button. It is very important to enable it for the google login to work.</li>
199
+ <li>Now click on Credentials section and go to OAuth consent screen and enter the app details there.</li>
200
+ <li>Now click on Credentials tab and click on "Add credentials" button, a selection will appear and click on OAuth 2.0 client ID</li>
201
+ <li>Please choose "Web application" as Application type and enter the necessary details. In the authorized redirect URIs please enter the details provided in the note section from plugin and click create button.</li>
202
+ <li>In the popup you will get Client ID and client secret and please enter those credentials above.</li>
203
  <li>Rediret uri setup:<br />
204
  Please use <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check' readonly='readonly'/> - for wordpress login page.<br />
205
  Please use <input type='text' value='<?php echo site_url(); ?>/index.php?apsl_login_id=google_check' readonly='readonly'/> - if you have used the shortcode or widget in frontend.
209
  </li>
210
  </ul>
211
  </div>
212
+ </div>
213
  </div>
214
  <?php
215
  break; ?>
inc/frontend/login_check.php CHANGED
@@ -584,6 +584,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
584
  $user_login_url = home_url();
585
  }
586
  $redirect_to = $user_login_url;
 
587
  wp_safe_redirect( $redirect_to );
588
  exit();
589
  }
584
  $user_login_url = home_url();
585
  }
586
  $redirect_to = $user_login_url;
587
+ $redirect_to = apply_filters( 'login_redirect', $redirect_to );
588
  wp_safe_redirect( $redirect_to );
589
  exit();
590
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === AccessPress Social Login Lite ===
2
  Contributors: Access Keys
3
  Tags: social, login, social login, facebook, twitter, google, social connect, social network login, register, login with, signin, oauth, authorize, oauth
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
- Stable tag: 3.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,10 +131,16 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
 
 
 
 
 
 
134
  = 3.0.0 =
135
  * Done the update of the user notification function to latest.
136
 
137
- = 2.0.9 =
138
  * Done the bug fixing for the facebook login with the newer api version v2.5.
139
 
140
  = 2.0.8 =
1
+ === AccessPress Social Login Lite ===
2
  Contributors: Access Keys
3
  Tags: social, login, social login, facebook, twitter, google, social connect, social network login, register, login with, signin, oauth, authorize, oauth
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
134
+ = 3.0.1 =
135
+ * Done the modifications of the note sections for the google settings.
136
+ * Done bug fixing for the email notifications for admin with blank user details after doing upgrade of the notification function.
137
+ * Done the addition of a hook to display the social login buttons when "Users must be registered and logged in to comment" checked in the discussions settings.
138
+ * Done the addition of login redirect filter.
139
+
140
  = 3.0.0 =
141
  * Done the update of the user notification function to latest.
142
 
143
+ = 2.0.9 =
144
  * Done the bug fixing for the facebook login with the newer api version v2.5.
145
 
146
  = 2.0.8 =