Version Description
- Fixed some security issues
- Removed session messages
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Icons WordPress Plugin – AccessPress Social Icons |
Version | 1.6.8 |
Comparing to | |
See all releases |
Code changes from version 1.6.7 to 1.6.8
- accesspress-social-icons.php +2 -2
- inc/backend/copy-icon-set.php +8 -4
- inc/backend/delete-icon-set.php +3 -3
- inc/backend/main-page.php +8 -2
- inc/backend/save-set.php +3 -3
- readme.txt +5 -1
accesspress-social-icons.php
CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die("No script kiddies please!");
|
|
4 |
* Plugin Name:AccessPress Social Icons
|
5 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
|
6 |
* Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
|
7 |
-
* Version:1.6.
|
8 |
* Author:AccessPress Themes
|
9 |
* Author URI:http://accesspressthemes.com/
|
10 |
* Text Domain: accesspress-social-icons
|
@@ -85,7 +85,7 @@ if (!class_exists('APS_Class')) {
|
|
85 |
}
|
86 |
if(!defined('APS_VERSION'))
|
87 |
{
|
88 |
-
define('APS_VERSION','1.6.
|
89 |
}
|
90 |
}
|
91 |
|
4 |
* Plugin Name:AccessPress Social Icons
|
5 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
|
6 |
* Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
|
7 |
+
* Version:1.6.8
|
8 |
* Author:AccessPress Themes
|
9 |
* Author URI:http://accesspressthemes.com/
|
10 |
* Text Domain: accesspress-social-icons
|
85 |
}
|
86 |
if(!defined('APS_VERSION'))
|
87 |
{
|
88 |
+
define('APS_VERSION','1.6.8');
|
89 |
}
|
90 |
}
|
91 |
|
inc/backend/copy-icon-set.php
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
global $wpdb;
|
4 |
-
$si_id = sanitize_text_field($_GET['si_id']);
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
$icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
|
|
|
7 |
$icon_set = $icon_sets[0];
|
8 |
//$this->print_array($icon_set);
|
9 |
/**
|
@@ -57,6 +58,9 @@ array(
|
|
57 |
'%s'
|
58 |
)
|
59 |
);
|
60 |
-
|
61 |
-
wp_redirect(admin_url().'admin.php?page=aps-social');
|
62 |
-
exit;
|
|
|
|
|
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
global $wpdb;
|
4 |
+
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
$icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
|
7 |
+
if(!empty($icon_sets)){
|
8 |
$icon_set = $icon_sets[0];
|
9 |
//$this->print_array($icon_set);
|
10 |
/**
|
58 |
'%s'
|
59 |
)
|
60 |
);
|
61 |
+
//$_SESSION['aps_message'] = __('Icon Set Copied Successfully','accesspress-social-icons');
|
62 |
+
wp_redirect(admin_url().'admin.php?page=aps-social&message=2');
|
63 |
+
exit;
|
64 |
+
}else{
|
65 |
+
die(__('No icons found for this icon id','accesspress-social-icons'));
|
66 |
+
}
|
inc/backend/delete-icon-set.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
global $wpdb;
|
4 |
-
$si_id = sanitize_text_field($_GET['si_id']);
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
$wpdb->delete( $table_name, array( 'si_id' => $si_id ), array( '%d' ) );
|
7 |
-
|
8 |
-
wp_redirect(admin_url().'admin.php?page=aps-social');
|
9 |
exit;
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
global $wpdb;
|
4 |
+
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
$wpdb->delete( $table_name, array( 'si_id' => $si_id ), array( '%d' ) );
|
7 |
+
//$_SESSION['aps_message'] = __('Icon set deleted successfully.','accesspress-social-icons');
|
8 |
+
wp_redirect(admin_url().'admin.php?page=aps-social&message=3');
|
9 |
exit;
|
inc/backend/main-page.php
CHANGED
@@ -11,8 +11,14 @@
|
|
11 |
<div class="aps-message aps-message-success updated">
|
12 |
<p>
|
13 |
<?php
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
?>
|
17 |
</p>
|
18 |
</div>
|
11 |
<div class="aps-message aps-message-success updated">
|
12 |
<p>
|
13 |
<?php
|
14 |
+
if($_GET['message'] == 1){
|
15 |
+
echo __('Icon Set Added Successfully','accesspress-social-icons');;
|
16 |
+
}else if($_GET['message'] == 2){
|
17 |
+
echo __('Icon Set Copied Successfully','accesspress-social-icons');
|
18 |
+
}else if($_GET['message'] == 3){
|
19 |
+
echo __('Icon set deleted successfully.','accesspress-social-icons');
|
20 |
+
}
|
21 |
+
|
22 |
?>
|
23 |
</p>
|
24 |
</div>
|
inc/backend/save-set.php
CHANGED
@@ -148,7 +148,7 @@ if(isset($si_id))
|
|
148 |
'icon_details'=>$icons,
|
149 |
'icon_extra'=>$icon_extra
|
150 |
),
|
151 |
-
array('si_id'
|
152 |
array(
|
153 |
'%s',
|
154 |
'%s',
|
@@ -164,7 +164,7 @@ if(isset($si_id))
|
|
164 |
),
|
165 |
array('%d')
|
166 |
);
|
167 |
-
|
168 |
}
|
169 |
else
|
170 |
{
|
@@ -197,7 +197,7 @@ array(
|
|
197 |
'%s'
|
198 |
)
|
199 |
);
|
200 |
-
|
201 |
}
|
202 |
if(isset($_POST['current_page']))
|
203 |
{
|
148 |
'icon_details'=>$icons,
|
149 |
'icon_extra'=>$icon_extra
|
150 |
),
|
151 |
+
array('si_id'=>intval($si_id)),
|
152 |
array(
|
153 |
'%s',
|
154 |
'%s',
|
164 |
),
|
165 |
array('%d')
|
166 |
);
|
167 |
+
//$_SESSION['aps_message'] = __('Icon Set Updated Successfully','accesspress-social-icons');
|
168 |
}
|
169 |
else
|
170 |
{
|
197 |
'%s'
|
198 |
)
|
199 |
);
|
200 |
+
//$_SESSION['aps_message'] = __('Icon Set Saved Successfully','accesspress-social-icons');
|
201 |
}
|
202 |
if(isset($_POST['current_page']))
|
203 |
{
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social icon, social icons, social media, social icon widget, social icons
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -135,6 +135,10 @@ Once you install the plugin , you can check some general documentation about how
|
|
135 |
4. Backend Lcon Sets Listing
|
136 |
|
137 |
== Changelog ==
|
|
|
|
|
|
|
|
|
138 |
= 1.6.7 =
|
139 |
* Fixed XSS vulnerability for icon edit page
|
140 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.6.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
135 |
4. Backend Lcon Sets Listing
|
136 |
|
137 |
== Changelog ==
|
138 |
+
= 1.6.8 =
|
139 |
+
* Fixed some security issues
|
140 |
+
* Removed session messages
|
141 |
+
|
142 |
= 1.6.7 =
|
143 |
* Fixed XSS vulnerability for icon edit page
|
144 |
|