Version Description
- Removal of unnecessary comments from the plugin's files.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- accesspress-social-login-lite.php +2 -3
- inc/backend/save-settings.php +4 -0
- inc/frontend/login_check.php +0 -25
- readme.txt +4 -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.
|
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.
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
@@ -48,7 +48,6 @@ if( !defined( 'APSL_PLUGIN_DIR' ) ) {
|
|
48 |
*/
|
49 |
include_once( 'inc/backend/widget.php' );
|
50 |
// Redefine user notification function
|
51 |
-
// Redefine user notification function
|
52 |
if ( !function_exists('wp_new_user_notification') ) {
|
53 |
|
54 |
function wp_new_user_notification( $user_id, $deprecated = null, $notify = 'both' ) {
|
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.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.0.2' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
48 |
*/
|
49 |
include_once( 'inc/backend/widget.php' );
|
50 |
// Redefine user notification function
|
|
|
51 |
if ( !function_exists('wp_new_user_notification') ) {
|
52 |
|
53 |
function wp_new_user_notification( $user_id, $deprecated = null, $notify = 'both' ) {
|
inc/backend/save-settings.php
CHANGED
@@ -3,6 +3,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
3 |
|
4 |
$apsl_settings = array();
|
5 |
$apsl_settings['network_ordering'] = $_POST['network_ordering'];
|
|
|
6 |
//for facebook settings
|
7 |
foreach( $_POST['apsl_facebook_settings'] as $key => $value ) {
|
8 |
$$key = sanitize_text_field( $value );
|
@@ -11,6 +12,7 @@ $apsl_facebook_enable = isset( $apsl_facebook_enable ) ? $apsl_facebook_enable :
|
|
11 |
|
12 |
$facebook_parameters = array('apsl_facebook_enable' => $apsl_facebook_enable, 'apsl_facebook_app_id' => $apsl_facebook_app_id, 'apsl_facebook_app_secret' => $apsl_facebook_app_secret);
|
13 |
$apsl_settings['apsl_facebook_settings'] = $facebook_parameters;
|
|
|
14 |
//for twitter settings
|
15 |
foreach( $_POST['apsl_twitter_settings'] as $key => $value ) {
|
16 |
$$key = sanitize_text_field( $value );
|
@@ -20,6 +22,7 @@ $apsl_twitter_enable = isset( $apsl_twitter_enable ) ? $apsl_twitter_enable : ''
|
|
20 |
$twitter_parameters = array('apsl_twitter_enable' => $apsl_twitter_enable, 'apsl_twitter_api_key' => $apsl_twitter_api_key, 'apsl_twitter_api_secret' => $apsl_twitter_api_secret);
|
21 |
|
22 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
|
|
23 |
//for google settings
|
24 |
foreach( $_POST['apsl_google_settings'] as $key => $value ) {
|
25 |
$$key = sanitize_text_field( $value );
|
@@ -49,6 +52,7 @@ $apsl_settings['apsl_custom_login_redirect_options'] = sanitize_text_field( $_PO
|
|
49 |
$apsl_settings['apsl_custom_login_redirect_link'] = sanitize_text_field( $_POST['apsl_custom_login_redirect_link'] );
|
50 |
$apsl_settings['apsl_user_avatar_options'] = $_POST['apsl_user_avatar_options'];
|
51 |
$apsl_settings['apsl_send_email_notification_options'] = $_POST['apsl_send_email_notification_options'];
|
|
|
52 |
//for saving the settings
|
53 |
update_option( APSL_SETTINGS, $apsl_settings );
|
54 |
$_SESSION['apsl_message'] = __( 'Settings Saved Successfully.', 'accesspress-social-login-lite' );
|
3 |
|
4 |
$apsl_settings = array();
|
5 |
$apsl_settings['network_ordering'] = $_POST['network_ordering'];
|
6 |
+
|
7 |
//for facebook settings
|
8 |
foreach( $_POST['apsl_facebook_settings'] as $key => $value ) {
|
9 |
$$key = sanitize_text_field( $value );
|
12 |
|
13 |
$facebook_parameters = array('apsl_facebook_enable' => $apsl_facebook_enable, 'apsl_facebook_app_id' => $apsl_facebook_app_id, 'apsl_facebook_app_secret' => $apsl_facebook_app_secret);
|
14 |
$apsl_settings['apsl_facebook_settings'] = $facebook_parameters;
|
15 |
+
|
16 |
//for twitter settings
|
17 |
foreach( $_POST['apsl_twitter_settings'] as $key => $value ) {
|
18 |
$$key = sanitize_text_field( $value );
|
22 |
$twitter_parameters = array('apsl_twitter_enable' => $apsl_twitter_enable, 'apsl_twitter_api_key' => $apsl_twitter_api_key, 'apsl_twitter_api_secret' => $apsl_twitter_api_secret);
|
23 |
|
24 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
25 |
+
|
26 |
//for google settings
|
27 |
foreach( $_POST['apsl_google_settings'] as $key => $value ) {
|
28 |
$$key = sanitize_text_field( $value );
|
52 |
$apsl_settings['apsl_custom_login_redirect_link'] = sanitize_text_field( $_POST['apsl_custom_login_redirect_link'] );
|
53 |
$apsl_settings['apsl_user_avatar_options'] = $_POST['apsl_user_avatar_options'];
|
54 |
$apsl_settings['apsl_send_email_notification_options'] = $_POST['apsl_send_email_notification_options'];
|
55 |
+
|
56 |
//for saving the settings
|
57 |
update_option( APSL_SETTINGS, $apsl_settings );
|
58 |
$_SESSION['apsl_message'] = __( 'Settings Saved Successfully.', 'accesspress-social-login-lite' );
|
inc/frontend/login_check.php
CHANGED
@@ -463,31 +463,6 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
463 |
wp_update_user( $row );
|
464 |
}
|
465 |
}
|
466 |
-
// Redefine user notification function
|
467 |
-
// function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
|
468 |
-
// $user = new WP_User( $user_id );
|
469 |
-
|
470 |
-
// $user_login = stripslashes( $user->user_login );
|
471 |
-
// $user_email = stripslashes( $user->user_email );
|
472 |
-
|
473 |
-
// $message = sprintf( __( 'New user registration on your blog %s:' ), get_option( 'blogname' ) ) . "\r\n\r\n";
|
474 |
-
// $message.= sprintf( __( 'Username: %s' ), $user_login ) . "\r\n\r\n";
|
475 |
-
// $message.= sprintf( __( 'E-mail: %s' ), $user_email ) . "\r\n";
|
476 |
-
|
477 |
-
// @wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] New User Registration' ), get_option( 'blogname' ) ), $message );
|
478 |
-
|
479 |
-
// if( empty( $plaintext_pass ) )return;
|
480 |
-
|
481 |
-
// $message = __( 'Hi there,' ) . "\r\n\r\n";
|
482 |
-
// $message.= sprintf( __( "Welcome to %s! Here's how to log in:" ), get_option( 'blogname' ) ) . "\r\n\r\n";
|
483 |
-
// $message.= wp_login_url() . "\r\n";
|
484 |
-
// $message.= sprintf( __( 'Username: %s' ), $user_login ) . "\r\n";
|
485 |
-
// $message.= sprintf( __( 'Password: %s' ), $plaintext_pass ) . "\r\n\r\n";
|
486 |
-
// $message.= sprintf( __( 'If you have any problems, please contact me at %s.' ), get_option( 'admin_email' ) ) . "\r\n\r\n";
|
487 |
-
// $message.= __( 'Adios!' );
|
488 |
-
|
489 |
-
// wp_mail( $user_email, sprintf( __( '[%s] Your username and password' ), get_option( 'blogname' ) ), $message );
|
490 |
-
// }
|
491 |
|
492 |
function getUserByMail( $email ) {
|
493 |
global $wpdb;
|
463 |
wp_update_user( $row );
|
464 |
}
|
465 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
|
467 |
function getUserByMail( $email ) {
|
468 |
global $wpdb;
|
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.3
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,9 @@ 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.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.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 3.0.2
|
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.2 =
|
135 |
+
* Removal of unnecessary comments from the plugin's files.
|
136 |
+
|
137 |
= 3.0.1 =
|
138 |
* Done the modifications of the note sections for the google settings.
|
139 |
* Done bug fixing for the email notifications for admin with blank user details after doing upgrade of the notification function.
|