Version Description
- fix/update security issue
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 3.1.3 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.1.3
- easy-social-icons.php +9 -9
- 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.1.
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
@@ -433,19 +433,19 @@ function cnss_social_icon_option_fn() {
|
|
433 |
<td width="110">
|
434 |
<label><?php _e( 'Icon Width <em>(px)</em>:' ); ?></label>
|
435 |
<input class="widefat" name="_width" type="number" value="<?php
|
436 |
-
echo isset($_POST['_width']) ?
|
437 |
</td>
|
438 |
<td> </td>
|
439 |
<td width="110">
|
440 |
<label><?php _e( 'Icon Height <em>(px)</em>:' ); ?></label>
|
441 |
<input class="widefat" name="_height" type="number" value="<?php
|
442 |
-
echo isset($_POST['_height']) ?
|
443 |
</td>
|
444 |
<td> </td>
|
445 |
<td>
|
446 |
<label><?php _e( 'Margin <em>(px)</em>:' ); ?></label><br />
|
447 |
<input class="widefat" name="_margin" type="number" value="<?php
|
448 |
-
echo isset($_POST['_margin']) ?
|
449 |
</td>
|
450 |
<td> </td>
|
451 |
<td><label><?php _e( 'Alignment:' ); ?></label><br />
|
@@ -464,13 +464,13 @@ function cnss_social_icon_option_fn() {
|
|
464 |
<td>
|
465 |
<label><?php _e( 'Custom ID:' ); ?></label>
|
466 |
<input class="widefat" placeholder="ID" name="_attr_id" type="text" value="<?php
|
467 |
-
echo isset($_POST['_attr_id']) ?
|
468 |
</td>
|
469 |
<td> </td>
|
470 |
<td>
|
471 |
<label><?php _e( 'Custom Class:' ); ?></label>
|
472 |
<input class="widefat" placeholder="Class" name="_attr_class" type="text" value="<?php
|
473 |
-
echo isset($_POST['_attr_class']) ?
|
474 |
</td>
|
475 |
</tr>
|
476 |
</table>
|
@@ -943,7 +943,7 @@ if($err!='') echo '<div id="message" class="error fade">'.$err.'</div>';
|
|
943 |
<input list="title-autofill" type="text" name="title" id="title" class="regular-text" value="<?php echo $title?>" /><br /><i>Type few char for suggestions</i>
|
944 |
<datalist style="display: none;" id="title-autofill">
|
945 |
<?php foreach ($social_sites as $key => $value) { ?>
|
946 |
-
<option value="<?php echo $value; ?>">
|
947 |
<?php } ?>
|
948 |
</td>
|
949 |
</tr>
|
@@ -992,7 +992,7 @@ if($err!='') echo '<div id="message" class="error fade">'.$err.'</div>';
|
|
992 |
|
993 |
<?php if (isset($_GET['mode']) ) { ?>
|
994 |
<input type="hidden" name="action" value="edit" />
|
995 |
-
<input type="hidden" name="id" id="id" value="<?php echo $id;?>" />
|
996 |
<?php } else {?>
|
997 |
<input type="hidden" name="action" value="update" />
|
998 |
<?php } ?>
|
@@ -1233,7 +1233,7 @@ function cn_social_icon($attr = array(), $call_from_widget = NULL) {
|
|
1233 |
$li_margin = round($cnss_margin/2);
|
1234 |
|
1235 |
ob_start();
|
1236 |
-
echo '<ul id="'
|
1237 |
$i=0;
|
1238 |
foreach($icons as $icon)
|
1239 |
{
|
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.1.3
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
433 |
<td width="110">
|
434 |
<label><?php _e( 'Icon Width <em>(px)</em>:' ); ?></label>
|
435 |
<input class="widefat" name="_width" type="number" value="<?php
|
436 |
+
echo esc_attr(isset($_POST['_width']) ? $_POST['_width'] : $cnss_width); ?>">
|
437 |
</td>
|
438 |
<td> </td>
|
439 |
<td width="110">
|
440 |
<label><?php _e( 'Icon Height <em>(px)</em>:' ); ?></label>
|
441 |
<input class="widefat" name="_height" type="number" value="<?php
|
442 |
+
echo esc_attr(isset($_POST['_height']) ? $_POST['_height'] : $cnss_height); ?>">
|
443 |
</td>
|
444 |
<td> </td>
|
445 |
<td>
|
446 |
<label><?php _e( 'Margin <em>(px)</em>:' ); ?></label><br />
|
447 |
<input class="widefat" name="_margin" type="number" value="<?php
|
448 |
+
echo esc_attr(isset($_POST['_margin']) ? $_POST['_margin'] : $cnss_margin); ?>">
|
449 |
</td>
|
450 |
<td> </td>
|
451 |
<td><label><?php _e( 'Alignment:' ); ?></label><br />
|
464 |
<td>
|
465 |
<label><?php _e( 'Custom ID:' ); ?></label>
|
466 |
<input class="widefat" placeholder="ID" name="_attr_id" type="text" value="<?php
|
467 |
+
echo esc_attr(isset($_POST['_attr_id']) ? $_POST['_attr_id'] : ''); ?>">
|
468 |
</td>
|
469 |
<td> </td>
|
470 |
<td>
|
471 |
<label><?php _e( 'Custom Class:' ); ?></label>
|
472 |
<input class="widefat" placeholder="Class" name="_attr_class" type="text" value="<?php
|
473 |
+
echo esc_attr(isset($_POST['_attr_class']) ? $_POST['_attr_class'] : ''); ?>">
|
474 |
</td>
|
475 |
</tr>
|
476 |
</table>
|
943 |
<input list="title-autofill" type="text" name="title" id="title" class="regular-text" value="<?php echo $title?>" /><br /><i>Type few char for suggestions</i>
|
944 |
<datalist style="display: none;" id="title-autofill">
|
945 |
<?php foreach ($social_sites as $key => $value) { ?>
|
946 |
+
<option value="<?php echo esc_attr($value); ?>">
|
947 |
<?php } ?>
|
948 |
</td>
|
949 |
</tr>
|
992 |
|
993 |
<?php if (isset($_GET['mode']) ) { ?>
|
994 |
<input type="hidden" name="action" value="edit" />
|
995 |
+
<input type="hidden" name="id" id="id" value="<?php echo esc_attr($id);?>" />
|
996 |
<?php } else {?>
|
997 |
<input type="hidden" name="action" value="update" />
|
998 |
<?php } ?>
|
1233 |
$li_margin = round($cnss_margin/2);
|
1234 |
|
1235 |
ob_start();
|
1236 |
+
echo '<ul id="'.esc_attr($attr_id).'" class="cnss-social-icon '.esc_attr($attr_class).'" style="text-align:'.esc_attr($text_align).';">';
|
1237 |
$i=0;
|
1238 |
foreach($icons as $icon)
|
1239 |
{
|
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.8.1
|
7 |
-
Stable tag: 3.1.
|
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.1.2 =
|
80 |
* check with latest wordpress version 5.8.1
|
81 |
* fix/update security issue
|
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.8.1
|
7 |
+
Stable tag: 3.1.3
|
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.1.3 =
|
80 |
+
* fix/update security issue
|
81 |
+
|
82 |
= 3.1.2 =
|
83 |
* check with latest wordpress version 5.8.1
|
84 |
* fix/update security issue
|