Version Description
- check with latest wordpress version 5.8.1
- fix/update security issue
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- easy-social-icons.php +12 -16
- readme.txt +7 -3
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
|
@@ -390,36 +390,32 @@ function cnss_social_icon_option_fn() {
|
|
390 |
if( isset($_POST['generate_shortcode']) && check_admin_referer('cn_gen_sc') )
|
391 |
{
|
392 |
if(is_numeric($_POST['_width']) && $cnss_width != $_POST['_width']){
|
393 |
-
$shortcode .= ' width="'.
|
394 |
}
|
395 |
if(is_numeric($_POST['_height']) && $cnss_height != $_POST['_height'] ){
|
396 |
-
$shortcode .= ' height="'.
|
397 |
}
|
398 |
if(is_numeric($_POST['_margin']) && $cnss_margin != $_POST['_margin'] ){
|
399 |
-
$shortcode .= ' margin="'.
|
400 |
}
|
401 |
if(isset($_POST['_alignment']) && $text_align != $_POST['_alignment'] ){
|
402 |
-
$shortcode .= ' alignment="'.
|
403 |
-
$text_align =
|
404 |
}
|
405 |
if(isset($_POST['_display']) && $vorh != $_POST['_display'] ){
|
406 |
-
$shortcode .= ' display="'.
|
407 |
-
$vorh =
|
408 |
}
|
409 |
if(isset($_POST['_attr_id']) && $_POST['_attr_id']!=''){
|
410 |
-
$shortcode .= ' attr_id="'.
|
411 |
}
|
412 |
if(isset($_POST['_attr_class']) && $_POST['_attr_class']!=''){
|
413 |
-
$shortcode .= ' attr_class="'.
|
414 |
}
|
415 |
if( isset($_POST['_selected_icons']) ) {
|
416 |
if(is_array($_POST['_selected_icons'])) {
|
417 |
-
$ids =
|
418 |
-
|
419 |
-
$ids .= $icon.",";
|
420 |
-
}
|
421 |
-
$ids = rtrim($ids,",");
|
422 |
-
$shortcode .= ' selected_icons="'.$ids .'"';
|
423 |
}
|
424 |
}
|
425 |
}
|
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.2
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
390 |
if( isset($_POST['generate_shortcode']) && check_admin_referer('cn_gen_sc') )
|
391 |
{
|
392 |
if(is_numeric($_POST['_width']) && $cnss_width != $_POST['_width']){
|
393 |
+
$shortcode .= ' width="'.sanitize_text_field($_POST['_width']).'"';
|
394 |
}
|
395 |
if(is_numeric($_POST['_height']) && $cnss_height != $_POST['_height'] ){
|
396 |
+
$shortcode .= ' height="'.sanitize_text_field($_POST['_height']).'"';
|
397 |
}
|
398 |
if(is_numeric($_POST['_margin']) && $cnss_margin != $_POST['_margin'] ){
|
399 |
+
$shortcode .= ' margin="'.sanitize_text_field($_POST['_margin']).'"';
|
400 |
}
|
401 |
if(isset($_POST['_alignment']) && $text_align != $_POST['_alignment'] ){
|
402 |
+
$shortcode .= ' alignment="'.sanitize_text_field($_POST['_alignment']).'"';
|
403 |
+
$text_align = sanitize_text_field($_POST['_alignment']);
|
404 |
}
|
405 |
if(isset($_POST['_display']) && $vorh != $_POST['_display'] ){
|
406 |
+
$shortcode .= ' display="'.sanitize_text_field($_POST['_display']).'"';
|
407 |
+
$vorh = sanitize_text_field($_POST['_display']);
|
408 |
}
|
409 |
if(isset($_POST['_attr_id']) && $_POST['_attr_id']!=''){
|
410 |
+
$shortcode .= ' attr_id="'.sanitize_text_field($_POST['_attr_id']).'"';
|
411 |
}
|
412 |
if(isset($_POST['_attr_class']) && $_POST['_attr_class']!=''){
|
413 |
+
$shortcode .= ' attr_class="'.sanitize_text_field($_POST['_attr_class']).'"';
|
414 |
}
|
415 |
if( isset($_POST['_selected_icons']) ) {
|
416 |
if(is_array($_POST['_selected_icons'])) {
|
417 |
+
$ids = implode(',', $_POST['_selected_icons']);
|
418 |
+
$shortcode .= ' selected_icons="'.sanitize_text_field($ids) .'"';
|
|
|
|
|
|
|
|
|
419 |
}
|
420 |
}
|
421 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Easy Social Icons ===
|
2 |
Contributors: cybernetikz
|
3 |
Donate link:
|
4 |
-
Tags: easy social
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 5.8
|
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,10 @@ If you are using wordpress version lower than 3.5 please use Easy social Icon ve
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
79 |
= 3.1.1 =
|
80 |
* fix/update security issue
|
81 |
|
1 |
=== Easy Social Icons ===
|
2 |
Contributors: cybernetikz
|
3 |
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.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.1.2 =
|
80 |
+
* check with latest wordpress version 5.8.1
|
81 |
+
* fix/update security issue
|
82 |
+
|
83 |
= 3.1.1 =
|
84 |
* fix/update security issue
|
85 |
|