Version Description
- fix / update security issue
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 3.2.2 |
Comparing to | |
See all releases |
Code changes from version 3.2.1 to 3.2.2
- easy-social-icons.php +16 -10
- readme.txt +4 -1
easy-social-icons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
-
Version: 3.2.
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
@@ -752,7 +752,7 @@ function cnss_social_icon_sort_fn() {
|
|
752 |
<?php
|
753 |
foreach($icons as $icon) {
|
754 |
?>
|
755 |
-
<li id="item_<?php echo $icon->id ?>">
|
756 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
757 |
<tr style="background:#f7f7f7">
|
758 |
<td style="padding:5px 5px 0;" width="64"><?php echo cnss_get_icon_html($icon->image_url, $icon->title); ?></td>
|
@@ -999,11 +999,11 @@ if($err!='') echo '<div id="message" class="error fade">'.$err.'</div>';
|
|
999 |
</tr>
|
1000 |
|
1001 |
<tr valign="top">
|
1002 |
-
<th scope="row"><?php echo $uptxt;?><em>*</em></th>
|
1003 |
<td>
|
1004 |
-
<i id="fa-placeholder" class="fa <?php echo $image_url; ?>" aria-hidden="true" style="font-size: 2em;"></i>
|
1005 |
|
1006 |
-
<img id="logoimg" style="vertical-align:top" src="<?php echo cnss_is_image_icon($image_url)
|
1007 |
|
1008 |
<a title="Choose Font Awesome Icon (Version 5.7.2)" href="#TB_inline?width=600&height=500&inlineId=cnss-font-awesome-icons-list" class="thickbox button">Choose From FontAwesome Icon </a>
|
1009 |
<span style="vertical-align:middle;">or</span>
|
@@ -1134,10 +1134,14 @@ function cnss_social_icon_page_fn() {
|
|
1134 |
<?php
|
1135 |
if ($icons) {
|
1136 |
foreach($icons as $icon) {
|
|
|
|
|
|
|
|
|
1137 |
?>
|
1138 |
<tr valign="top">
|
1139 |
<td>
|
1140 |
-
<?php echo $icon->id
|
1141 |
</td>
|
1142 |
<td>
|
1143 |
<?php echo $icon->title;?>
|
@@ -1155,10 +1159,10 @@ function cnss_social_icon_page_fn() {
|
|
1155 |
<?php echo $icon->sortorder;?>
|
1156 |
</td>
|
1157 |
<td align="center">
|
1158 |
-
<a title="Edit <?php echo $icon->title;?>" href="?page=cnss_social_icon_add&mode=edit&id=<?php echo $icon->id
|
1159 |
</td>
|
1160 |
<td align="center">
|
1161 |
-
<a title="Delete <?php echo $icon->title;?>" onclick="show_confirm('<?php echo addslashes($icon->title)?>','<?php echo $icon->id
|
1162 |
</td>
|
1163 |
</tr>
|
1164 |
<?php
|
@@ -1337,6 +1341,7 @@ function cnss_social_icon_sc( $selected_icons_array = array() ) {
|
|
1337 |
$i=0;
|
1338 |
foreach($icons as $icon)
|
1339 |
{
|
|
|
1340 |
?><li style="display:inline-block; padding:2px 8px; border:1px dotted #ccc;">
|
1341 |
<div style="text-align: center; width: <?php echo $cnss_width ?>px;">
|
1342 |
<label for="icon<?php echo $icon->id; ?>">
|
@@ -1425,8 +1430,8 @@ class Cnss_Widget extends WP_Widget {
|
|
1425 |
|
1426 |
<table width="100%" border="0">
|
1427 |
<tr>
|
1428 |
-
<td><label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e( 'Alignment:' ); ?></label><br />
|
1429 |
-
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
1430 |
<option <?php selected( $instance[ 'alignment' ], 'center' ); ?> value="center">Center</option>
|
1431 |
<option <?php selected( $instance[ 'alignment' ], 'left' ); ?> value="left">Left</option>
|
1432 |
<option <?php selected( $instance[ 'alignment' ], 'right' ); ?> value="right">Right</option>
|
@@ -1477,6 +1482,7 @@ class Cnss_Widget extends WP_Widget {
|
|
1477 |
$i=0;
|
1478 |
foreach($icons as $icon)
|
1479 |
{
|
|
|
1480 |
?><li style="display:inline-block; padding:2px 8px; border:1px dashed #ccc;">
|
1481 |
<div style="text-align: center; width: <?php echo $cnss_width ?>px;">
|
1482 |
<label for="<?php echo $this->get_field_id( 'selected_icons'.$icon->id ); ?>"><?php echo cnss_get_icon_html($icon->image_url, $icon->title); ?>
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
+
Version: 3.2.2
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
752 |
<?php
|
753 |
foreach($icons as $icon) {
|
754 |
?>
|
755 |
+
<li id="item_<?php echo esc_attr($icon->id) ?>">
|
756 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
757 |
<tr style="background:#f7f7f7">
|
758 |
<td style="padding:5px 5px 0;" width="64"><?php echo cnss_get_icon_html($icon->image_url, $icon->title); ?></td>
|
999 |
</tr>
|
1000 |
|
1001 |
<tr valign="top">
|
1002 |
+
<th scope="row"><?php echo esc_attr($uptxt);?><em>*</em></th>
|
1003 |
<td>
|
1004 |
+
<i id="fa-placeholder" class="fa <?php echo esc_attr($image_url); ?>" aria-hidden="true" style="font-size: 2em;"></i>
|
1005 |
|
1006 |
+
<img id="logoimg" style="vertical-align:top" src="<?php echo cnss_is_image_icon($image_url) ? esc_url($image_url) : $blank_img; ?>" border="0" width="<?php //echo $cnss_width; ?>" height="<?php //echo $cnss_height; ?>" alt="<?php echo $title; ?>" />
|
1007 |
|
1008 |
<a title="Choose Font Awesome Icon (Version 5.7.2)" href="#TB_inline?width=600&height=500&inlineId=cnss-font-awesome-icons-list" class="thickbox button">Choose From FontAwesome Icon </a>
|
1009 |
<span style="vertical-align:middle;">or</span>
|
1134 |
<?php
|
1135 |
if ($icons) {
|
1136 |
foreach($icons as $icon) {
|
1137 |
+
$icon->id = esc_attr($icon->id);
|
1138 |
+
$icon->title = esc_attr($icon->title);
|
1139 |
+
$icon->url = esc_url($icon->url);
|
1140 |
+
$icon->sortorder = esc_attr($icon->sortorder);
|
1141 |
?>
|
1142 |
<tr valign="top">
|
1143 |
<td>
|
1144 |
+
<?php echo $icon->id; ?>
|
1145 |
</td>
|
1146 |
<td>
|
1147 |
<?php echo $icon->title;?>
|
1159 |
<?php echo $icon->sortorder;?>
|
1160 |
</td>
|
1161 |
<td align="center">
|
1162 |
+
<a title="Edit <?php echo $icon->title;?>" href="?page=cnss_social_icon_add&mode=edit&id=<?php echo $icon->id; ?>"><i class="fa fa-pencil-square-o fa-2x" aria-hidden="true"></i></a>
|
1163 |
</td>
|
1164 |
<td align="center">
|
1165 |
+
<a title="Delete <?php echo $icon->title;?>" onclick="show_confirm('<?php echo addslashes($icon->title)?>','<?php echo $icon->id; ?>');" href="#delete"><i class="fa fa-trash-o fa-2x" aria-hidden="true"></i></a>
|
1166 |
</td>
|
1167 |
</tr>
|
1168 |
<?php
|
1341 |
$i=0;
|
1342 |
foreach($icons as $icon)
|
1343 |
{
|
1344 |
+
$icon->id = esc_attr($icon->id);
|
1345 |
?><li style="display:inline-block; padding:2px 8px; border:1px dotted #ccc;">
|
1346 |
<div style="text-align: center; width: <?php echo $cnss_width ?>px;">
|
1347 |
<label for="icon<?php echo $icon->id; ?>">
|
1430 |
|
1431 |
<table width="100%" border="0">
|
1432 |
<tr>
|
1433 |
+
<td><label for="<?php echo esc_attr($this->get_field_id( 'alignment' )); ?>"><?php _e( 'Alignment:' ); ?></label><br />
|
1434 |
+
<select id="<?php echo esc_attr($this->get_field_id( 'alignment' )); ?>" name="<?php echo esc_attr($this->get_field_name( 'alignment' )); ?>">
|
1435 |
<option <?php selected( $instance[ 'alignment' ], 'center' ); ?> value="center">Center</option>
|
1436 |
<option <?php selected( $instance[ 'alignment' ], 'left' ); ?> value="left">Left</option>
|
1437 |
<option <?php selected( $instance[ 'alignment' ], 'right' ); ?> value="right">Right</option>
|
1482 |
$i=0;
|
1483 |
foreach($icons as $icon)
|
1484 |
{
|
1485 |
+
$icon->id = esc_attr($icon->id);
|
1486 |
?><li style="display:inline-block; padding:2px 8px; border:1px dashed #ccc;">
|
1487 |
<div style="text-align: center; width: <?php echo $cnss_width ?>px;">
|
1488 |
<label for="<?php echo $this->get_field_id( 'selected_icons'.$icon->id ); ?>"><?php echo cnss_get_icon_html($icon->image_url, $icon->title); ?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: easy social icons, easy social icon, social icons, social share, follow us, custom social icons, social media icons
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.9.2
|
7 |
-
Stable tag: 3.2.
|
8 |
|
9 |
Upload your own social media icons or choose from font-awesome. Use widget|shortcode to place icons anywhere(sidebar, header, footer, page) in theme.
|
10 |
|
@@ -76,6 +76,9 @@ If you are using wordpress version lower than 3.5 please use Easy social Icon ve
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
79 |
= 3.2.1 =
|
80 |
* fix / update security issue
|
81 |
* fix security issue (Admin + Stored XSS) and unauthenticated icon deletion
|
4 |
Tags: easy social icons, easy social icon, social icons, social share, follow us, custom social icons, social media icons
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.9.2
|
7 |
+
Stable tag: 3.2.2
|
8 |
|
9 |
Upload your own social media icons or choose from font-awesome. Use widget|shortcode to place icons anywhere(sidebar, header, footer, page) in theme.
|
10 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 3.2.2 =
|
80 |
+
* fix / update security issue
|
81 |
+
|
82 |
= 3.2.1 =
|
83 |
* fix / update security issue
|
84 |
* fix security issue (Admin + Stored XSS) and unauthenticated icon deletion
|