Animate It! - Version 2.3.8

Version Description

Download this release

Release Info

Developer eleopard
Plugin Icon 128x128 Animate It!
Version 2.3.8
Comparing to
See all releases

Code changes from version 2.3.7 to 2.3.8

Files changed (2) hide show
  1. edsanimate.php +10 -6
  2. readme.txt +5 -2
edsanimate.php CHANGED
@@ -5,7 +5,7 @@
5
  * Domain Path: /lang
6
  * Plugin URI: http://www.eleopard.in
7
  * Description: Add cool CSS3 animations to your content.
8
- * Version: 2.3.7
9
  * Author: eLEOPARD Design Studios
10
  * Author URI: http://www.eleopard.in
11
  * License: GNU General Public License version 2 or later; see LICENSE.txt
@@ -417,17 +417,19 @@ class EDS_Animate {
417
  return do_shortcode($content);
418
  }
419
 
420
- $classString .= " " . $animation;
421
 
422
  if(strcasecmp($infinite_animation, 'yes')==0) {
423
  $classString .= " infinite";
424
  }
425
-
426
- if($delay!= '' && is_int((int)$delay) && $delay>=0) {
 
427
  $classString .= " delay" . $delay;
428
  }
429
 
430
- if($duration!= '' && is_int((int)$duration) && $duration>=0) {
 
431
  $classString .= " duration" . $duration;
432
  } else {
433
  $classString .= " duration2";
@@ -443,7 +445,7 @@ class EDS_Animate {
443
 
444
 
445
  if(isset($scroll_offset) && $scroll_offset!=''){
446
- return '<div class="'.$classString.'" eds_scroll_offset="'.$scroll_offset.'">'.do_shortcode($content).'</div>';
447
  }else {
448
  return '<div class="'.$classString.'">'.do_shortcode($content).'</div>';
449
  }
@@ -471,6 +473,8 @@ class EDS_Animate {
471
  if( !$enable ) {
472
  return '';
473
  }
 
 
474
 
475
  $hide_on_load_css_class = '';
476
  $entry_animation = isset( $attributes['entry_animation_type'] ) ? $attributes['entry_animation_type']: '';
5
  * Domain Path: /lang
6
  * Plugin URI: http://www.eleopard.in
7
  * Description: Add cool CSS3 animations to your content.
8
+ * Version: 2.3.8
9
  * Author: eLEOPARD Design Studios
10
  * Author URI: http://www.eleopard.in
11
  * License: GNU General Public License version 2 or later; see LICENSE.txt
417
  return do_shortcode($content);
418
  }
419
 
420
+ $classString .= " " . sanitize_text_field( $animation );
421
 
422
  if(strcasecmp($infinite_animation, 'yes')==0) {
423
  $classString .= " infinite";
424
  }
425
+
426
+ if( $delay != '' ) {
427
+ $delay = intval( sanitize_text_field( $delay ) );
428
  $classString .= " delay" . $delay;
429
  }
430
 
431
+ if( $duration != '' ) {
432
+ $duration = intval( sanitize_text_field( $duration ) );
433
  $classString .= " duration" . $duration;
434
  } else {
435
  $classString .= " duration2";
445
 
446
 
447
  if(isset($scroll_offset) && $scroll_offset!=''){
448
+ return '<div class="'.$classString.'" eds_scroll_offset="'. sanitize_text_field( $scroll_offset ) .'">'.do_shortcode($content).'</div>';
449
  }else {
450
  return '<div class="'.$classString.'">'.do_shortcode($content).'</div>';
451
  }
473
  if( !$enable ) {
474
  return '';
475
  }
476
+
477
+ $attributes = array_map( 'sanitize_text_field', $attributes );
478
 
479
  $hide_on_load_css_class = '';
480
  $entry_animation = isset( $attributes['entry_animation_type'] ) ? $attributes['entry_animation_type']: '';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: eleopard
3
  Tags: css3 animation, animate.css, jquery, on scroll animation, delay, infinite, entry exit, iteration
4
  Requires at least: 4.7.0
5
- Tested up to: 5.3.2
6
- Stable tag: 2.3.7
7
  License: GNU General Public License version 2 or later
8
  License URI: http://www.gnu.org/copyleft/gpl.html
9
 
@@ -82,6 +82,9 @@ Add duration class ( duration1 to duration20 ) along with the other classes. or
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = Version 2.3.7 =
86
  * Added link to Settings page in Plugin list page.
87
  * Settings page updated
2
  Contributors: eleopard
3
  Tags: css3 animation, animate.css, jquery, on scroll animation, delay, infinite, entry exit, iteration
4
  Requires at least: 4.7.0
5
+ Tested up to: 5.9.2
6
+ Stable tag: 2.3.8
7
  License: GNU General Public License version 2 or later
8
  License URI: http://www.gnu.org/copyleft/gpl.html
9
 
82
 
83
  == Changelog ==
84
 
85
+ = Version 2.3.8 =
86
+ * Security Fixes
87
+
88
  = Version 2.3.7 =
89
  * Added link to Settings page in Plugin list page.
90
  * Settings page updated