Version Description
- Sanitization of the text fields for the plugin's backend settings.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- accesspress-social-login-lite.php +2 -2
- inc/backend/activation.php +28 -19
- inc/backend/save-settings.php +8 -8
- inc/frontend/login_integration.php +1 -1
- 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: 2.0.
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: apsl-lite
|
@@ -13,7 +13,7 @@
|
|
13 |
|
14 |
//Declearation of the necessary constants for plugin
|
15 |
if ( !defined( 'APSL_VERSION' ) ) {
|
16 |
-
define( 'APSL_VERSION', '2.0.
|
17 |
}
|
18 |
|
19 |
if ( !defined( 'APSL_IMAGE_DIR' ) ) {
|
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: 2.0.4
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: apsl-lite
|
13 |
|
14 |
//Declearation of the necessary constants for plugin
|
15 |
if ( !defined( 'APSL_VERSION' ) ) {
|
16 |
+
define( 'APSL_VERSION', '2.0.4' );
|
17 |
}
|
18 |
|
19 |
if ( !defined( 'APSL_IMAGE_DIR' ) ) {
|
inc/backend/activation.php
CHANGED
@@ -1,31 +1,36 @@
|
|
1 |
-
<?php
|
|
|
2 |
<?php
|
3 |
$apsl_settings = array();
|
4 |
|
5 |
-
$social_networks = array(
|
|
|
|
|
|
|
|
|
6 |
|
7 |
$apsl_settings['network_ordering'] = $social_networks;
|
8 |
|
9 |
//facebook settings
|
10 |
$facebook_parameters = array(
|
11 |
-
'apsl_facebook_enable'
|
12 |
-
'apsl_facebook_app_id'
|
13 |
-
'apsl_facebook_app_secret'
|
14 |
);
|
15 |
$apsl_settings['apsl_facebook_settings'] = $facebook_parameters;
|
16 |
|
17 |
//twitter settings
|
18 |
$twitter_parameters = array(
|
19 |
-
'apsl_twitter_enable'
|
20 |
-
'apsl_twitter_api_key'
|
21 |
-
'apsl_twitter_api_secret'
|
22 |
);
|
23 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
24 |
|
25 |
//google settings
|
26 |
$google_parameters = array(
|
27 |
-
'apsl_google_enable'
|
28 |
-
'apsl_google_client_id'
|
29 |
'apsl_google_client_secret' => ''
|
30 |
);
|
31 |
|
@@ -33,20 +38,24 @@ $apsl_settings['apsl_google_settings'] = $google_parameters;
|
|
33 |
|
34 |
$apsl_settings['apsl_enable_disable_plugin'] = 'yes';
|
35 |
|
36 |
-
$display_options = array(
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
$apsl_settings['apsl_icon_theme']
|
40 |
|
41 |
$apsl_settings['apsl_title_text_field'] = 'Social connect:';
|
42 |
-
$apsl_settings['apsl_custom_logout_redirect_options']
|
43 |
-
$apsl_settings['apsl_custom_logout_redirect_link']
|
44 |
|
45 |
-
$apsl_settings['apsl_custom_login_redirect_options']
|
46 |
-
$apsl_settings['apsl_custom_login_redirect_link']
|
47 |
|
48 |
-
$apsl_settings['apsl_user_avatar_options']
|
49 |
|
50 |
-
$apsl_settings['apsl_send_email_notification_options']
|
51 |
|
52 |
update_option( APSL_SETTINGS, $apsl_settings );
|
1 |
+
<?php
|
2 |
+
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); ?>
|
3 |
<?php
|
4 |
$apsl_settings = array();
|
5 |
|
6 |
+
$social_networks = array(
|
7 |
+
0 => 'facebook',
|
8 |
+
1 => 'twitter',
|
9 |
+
2 => 'google'
|
10 |
+
);
|
11 |
|
12 |
$apsl_settings['network_ordering'] = $social_networks;
|
13 |
|
14 |
//facebook settings
|
15 |
$facebook_parameters = array(
|
16 |
+
'apsl_facebook_enable' => '0',
|
17 |
+
'apsl_facebook_app_id' => '',
|
18 |
+
'apsl_facebook_app_secret' => ''
|
19 |
);
|
20 |
$apsl_settings['apsl_facebook_settings'] = $facebook_parameters;
|
21 |
|
22 |
//twitter settings
|
23 |
$twitter_parameters = array(
|
24 |
+
'apsl_twitter_enable' => '0',
|
25 |
+
'apsl_twitter_api_key' => '',
|
26 |
+
'apsl_twitter_api_secret' => ''
|
27 |
);
|
28 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
29 |
|
30 |
//google settings
|
31 |
$google_parameters = array(
|
32 |
+
'apsl_google_enable' => '0',
|
33 |
+
'apsl_google_client_id' => '',
|
34 |
'apsl_google_client_secret' => ''
|
35 |
);
|
36 |
|
38 |
|
39 |
$apsl_settings['apsl_enable_disable_plugin'] = 'yes';
|
40 |
|
41 |
+
$display_options = array(
|
42 |
+
'login_form',
|
43 |
+
'register_form',
|
44 |
+
'comment_form'
|
45 |
+
);
|
46 |
+
$apsl_settings['apsl_display_options'] = $display_options;
|
47 |
|
48 |
+
$apsl_settings['apsl_icon_theme'] = '1';
|
49 |
|
50 |
$apsl_settings['apsl_title_text_field'] = 'Social connect:';
|
51 |
+
$apsl_settings['apsl_custom_logout_redirect_options'] = 'home';
|
52 |
+
$apsl_settings['apsl_custom_logout_redirect_link'] = '';
|
53 |
|
54 |
+
$apsl_settings['apsl_custom_login_redirect_options'] = 'home';
|
55 |
+
$apsl_settings['apsl_custom_login_redirect_link'] = '';
|
56 |
|
57 |
+
$apsl_settings['apsl_user_avatar_options'] = 'default';
|
58 |
|
59 |
+
$apsl_settings['apsl_send_email_notification_options'] = 'yes';
|
60 |
|
61 |
update_option( APSL_SETTINGS, $apsl_settings );
|
inc/backend/save-settings.php
CHANGED
@@ -6,7 +6,7 @@ $apsl_settings['network_ordering'] = $_POST['network_ordering'];
|
|
6 |
|
7 |
//for facebook settings
|
8 |
foreach ( $_POST['apsl_facebook_settings'] as $key => $value ) {
|
9 |
-
$$key = $value;
|
10 |
}
|
11 |
$apsl_facebook_enable = isset( $apsl_facebook_enable ) ? $apsl_facebook_enable : '';
|
12 |
|
@@ -19,7 +19,7 @@ $apsl_settings['apsl_facebook_settings'] = $facebook_parameters;
|
|
19 |
|
20 |
//for twitter settings
|
21 |
foreach ( $_POST['apsl_twitter_settings'] as $key => $value ) {
|
22 |
-
$$key = $value;
|
23 |
}
|
24 |
$apsl_twitter_enable = isset( $apsl_twitter_enable ) ? $apsl_twitter_enable : '';
|
25 |
|
@@ -33,7 +33,7 @@ $apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
|
33 |
|
34 |
//for google settings
|
35 |
foreach ( $_POST['apsl_google_settings'] as $key => $value ) {
|
36 |
-
$$key = $value;
|
37 |
}
|
38 |
$apsl_google_enable = isset( $apsl_google_enable ) ? $apsl_google_enable : '';
|
39 |
|
@@ -58,12 +58,12 @@ $apsl_settings['apsl_display_options'] = $display_options;
|
|
58 |
|
59 |
$apsl_settings['apsl_icon_theme'] = $_POST['apsl_icon_theme'];
|
60 |
|
61 |
-
$apsl_settings['apsl_title_text_field'] = $_POST['apsl_title_text_field'];
|
62 |
-
$apsl_settings['apsl_custom_logout_redirect_options'] = $_POST['apsl_custom_logout_redirect_options'];
|
63 |
-
$apsl_settings['apsl_custom_logout_redirect_link'] = $_POST['apsl_custom_logout_redirect_link'];
|
64 |
|
65 |
-
$apsl_settings['apsl_custom_login_redirect_options'] = $_POST['apsl_custom_login_redirect_options'];
|
66 |
-
$apsl_settings['apsl_custom_login_redirect_link'] = $_POST['apsl_custom_login_redirect_link'];
|
67 |
|
68 |
$apsl_settings['apsl_user_avatar_options'] = $_POST['apsl_user_avatar_options'];
|
69 |
|
6 |
|
7 |
//for facebook settings
|
8 |
foreach ( $_POST['apsl_facebook_settings'] as $key => $value ) {
|
9 |
+
$$key = sanitize_text_field($value);
|
10 |
}
|
11 |
$apsl_facebook_enable = isset( $apsl_facebook_enable ) ? $apsl_facebook_enable : '';
|
12 |
|
19 |
|
20 |
//for twitter settings
|
21 |
foreach ( $_POST['apsl_twitter_settings'] as $key => $value ) {
|
22 |
+
$$key = sanitize_text_field($value);
|
23 |
}
|
24 |
$apsl_twitter_enable = isset( $apsl_twitter_enable ) ? $apsl_twitter_enable : '';
|
25 |
|
33 |
|
34 |
//for google settings
|
35 |
foreach ( $_POST['apsl_google_settings'] as $key => $value ) {
|
36 |
+
$$key = sanitize_text_field($value);
|
37 |
}
|
38 |
$apsl_google_enable = isset( $apsl_google_enable ) ? $apsl_google_enable : '';
|
39 |
|
58 |
|
59 |
$apsl_settings['apsl_icon_theme'] = $_POST['apsl_icon_theme'];
|
60 |
|
61 |
+
$apsl_settings['apsl_title_text_field'] = sanitize_text_field($_POST['apsl_title_text_field']);
|
62 |
+
$apsl_settings['apsl_custom_logout_redirect_options'] = sanitize_text_field($_POST['apsl_custom_logout_redirect_options']);
|
63 |
+
$apsl_settings['apsl_custom_logout_redirect_link'] = sanitize_text_field($_POST['apsl_custom_logout_redirect_link']);
|
64 |
|
65 |
+
$apsl_settings['apsl_custom_login_redirect_options'] = sanitize_text_field($_POST['apsl_custom_login_redirect_options']);
|
66 |
+
$apsl_settings['apsl_custom_login_redirect_link'] = sanitize_text_field($_POST['apsl_custom_login_redirect_link']);
|
67 |
|
68 |
$apsl_settings['apsl_user_avatar_options'] = $_POST['apsl_user_avatar_options'];
|
69 |
|
inc/frontend/login_integration.php
CHANGED
@@ -17,7 +17,7 @@ $encoded_url = urlencode( $redirect_to );
|
|
17 |
<div class='social-networks'>
|
18 |
<?php foreach ( $options['network_ordering'] as $key => $value ): ?>
|
19 |
<?php if ( $options["apsl_{$value}_settings"]["apsl_{$value}_enable"] === 'enable' ) { ?>
|
20 |
-
<a href="<?php wp_login_url() ?>?apsl_login_id=<?php echo $value; ?>_login<?php
|
21 |
if ( $encoded_url ) {
|
22 |
echo "&state=" . base64_encode( "redirect_to=$encoded_url" );
|
23 |
}
|
17 |
<div class='social-networks'>
|
18 |
<?php foreach ( $options['network_ordering'] as $key => $value ): ?>
|
19 |
<?php if ( $options["apsl_{$value}_settings"]["apsl_{$value}_enable"] === 'enable' ) { ?>
|
20 |
+
<a href="<?php echo wp_login_url(); ?>?apsl_login_id=<?php echo $value; ?>_login<?php
|
21 |
if ( $encoded_url ) {
|
22 |
echo "&state=" . base64_encode( "redirect_to=$encoded_url" );
|
23 |
}
|
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: 2.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 |
= 2.0.3 =
|
135 |
* Code formatting to optimize the plugin size.
|
136 |
* Text changes in the how to use section.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 2.0.4
|
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 |
+
= 2.0.4 =
|
135 |
+
* Sanitization of the text fields for the plugin's backend settings.
|
136 |
+
|
137 |
= 2.0.3 =
|
138 |
* Code formatting to optimize the plugin size.
|
139 |
* Text changes in the how to use section.
|