Easy Social Icons - Version 3.1.2

Version Description

  • check with latest wordpress version 5.8.1
  • fix/update security issue
Download this release

Release Info

Developer cybernetikz
Plugin Icon 128x128 Easy Social Icons
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

Files changed (2) hide show
  1. easy-social-icons.php +12 -16
  2. 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>&lt;?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?&gt;</strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
6
- Version: 3.1.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=&quot;'.esc_attr($_POST['_width']).'&quot;';
394
  }
395
  if(is_numeric($_POST['_height']) && $cnss_height != $_POST['_height'] ){
396
- $shortcode .= ' height=&quot;'.esc_attr($_POST['_height']).'&quot;';
397
  }
398
  if(is_numeric($_POST['_margin']) && $cnss_margin != $_POST['_margin'] ){
399
- $shortcode .= ' margin=&quot;'.esc_attr($_POST['_margin']).'&quot;';
400
  }
401
  if(isset($_POST['_alignment']) && $text_align != $_POST['_alignment'] ){
402
- $shortcode .= ' alignment=&quot;'.esc_attr($_POST['_alignment']).'&quot;';
403
- $text_align = esc_attr($_POST['_alignment']);
404
  }
405
  if(isset($_POST['_display']) && $vorh != $_POST['_display'] ){
406
- $shortcode .= ' display=&quot;'.esc_attr($_POST['_display']).'&quot;';
407
- $vorh = esc_attr($_POST['_display']);
408
  }
409
  if(isset($_POST['_attr_id']) && $_POST['_attr_id']!=''){
410
- $shortcode .= ' attr_id=&quot;'.esc_attr($_POST['_attr_id']).'&quot;';
411
  }
412
  if(isset($_POST['_attr_class']) && $_POST['_attr_class']!=''){
413
- $shortcode .= ' attr_class=&quot;'.esc_attr($_POST['_attr_class']).'&quot;';
414
  }
415
  if( isset($_POST['_selected_icons']) ) {
416
  if(is_array($_POST['_selected_icons'])) {
417
- $ids = "";
418
- foreach($_POST['_selected_icons'] as $icon) {
419
- $ids .= $icon.",";
420
- }
421
- $ids = rtrim($ids,",");
422
- $shortcode .= ' selected_icons=&quot;'.$ids .'&quot;';
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>&lt;?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?&gt;</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=&quot;'.sanitize_text_field($_POST['_width']).'&quot;';
394
  }
395
  if(is_numeric($_POST['_height']) && $cnss_height != $_POST['_height'] ){
396
+ $shortcode .= ' height=&quot;'.sanitize_text_field($_POST['_height']).'&quot;';
397
  }
398
  if(is_numeric($_POST['_margin']) && $cnss_margin != $_POST['_margin'] ){
399
+ $shortcode .= ' margin=&quot;'.sanitize_text_field($_POST['_margin']).'&quot;';
400
  }
401
  if(isset($_POST['_alignment']) && $text_align != $_POST['_alignment'] ){
402
+ $shortcode .= ' alignment=&quot;'.sanitize_text_field($_POST['_alignment']).'&quot;';
403
+ $text_align = sanitize_text_field($_POST['_alignment']);
404
  }
405
  if(isset($_POST['_display']) && $vorh != $_POST['_display'] ){
406
+ $shortcode .= ' display=&quot;'.sanitize_text_field($_POST['_display']).'&quot;';
407
+ $vorh = sanitize_text_field($_POST['_display']);
408
  }
409
  if(isset($_POST['_attr_id']) && $_POST['_attr_id']!=''){
410
+ $shortcode .= ' attr_id=&quot;'.sanitize_text_field($_POST['_attr_id']).'&quot;';
411
  }
412
  if(isset($_POST['_attr_class']) && $_POST['_attr_class']!=''){
413
+ $shortcode .= ' attr_class=&quot;'.sanitize_text_field($_POST['_attr_class']).'&quot;';
414
  }
415
  if( isset($_POST['_selected_icons']) ) {
416
  if(is_array($_POST['_selected_icons'])) {
417
+ $ids = implode(',', $_POST['_selected_icons']);
418
+ $shortcode .= ' selected_icons=&quot;'.sanitize_text_field($ids) .'&quot;';
 
 
 
 
419
  }
420
  }
421
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy Social Icons ===
2
  Contributors: cybernetikz
3
  Donate link:
4
- Tags: easy social icon,easy social icons,social icon,social icons,social,social share,follow,followus,follow us,share,icon,custom social icons, social media icons
5
  Requires at least: 3.5
6
- Tested up to: 5.8
7
- Stable tag: 3.1.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