WPFront Scroll Top - Version 2.0.5

Version Description

  • XSS fix.
Download this release

Release Info

Developer syammohanm
Plugin Icon 128x128 WPFront Scroll Top
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

classes/class-wpfront-scroll-top.php CHANGED
@@ -37,7 +37,7 @@ require_once(dirname(__DIR__) . '/templates/options-template.php');
37
  class WPFront_Scroll_Top {
38
 
39
  //Constants
40
- const VERSION = '2.0.4.04013';
41
  const OPTIONS_GROUP_NAME = 'wpfront-scroll-top-options-group';
42
  const OPTION_NAME = 'wpfront-scroll-top-options';
43
  const PLUGIN_SLUG = 'wpfront-scroll-top';
37
  class WPFront_Scroll_Top {
38
 
39
  //Constants
40
+ const VERSION = '2.0.5.07184';
41
  const OPTIONS_GROUP_NAME = 'wpfront-scroll-top-options-group';
42
  const OPTION_NAME = 'wpfront-scroll-top-options';
43
  const PLUGIN_SLUG = 'wpfront-scroll-top';
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: syammohanm
3
  Donate link: http://wpfront.com/donate/
4
  Tags: scroll to top, back to top, scroll top, scroll up, wordpress scroll top
5
  Requires at least: 5.0
6
- Tested up to: 5.7
7
  Requires PHP: 5.3
8
- Stable tag: 2.0.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -53,6 +53,9 @@ Visit [WPFront Scroll Top FAQ](http://wpfront.com/scroll-top-plugin-faq/) page f
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 2.0.4 =
57
  * WP compatibility fix.
58
 
@@ -139,6 +142,9 @@ Visit [WPFront Scroll Top FAQ](http://wpfront.com/scroll-top-plugin-faq/) page f
139
 
140
  == Upgrade Notice ==
141
 
 
 
 
142
  = 2.0.4 =
143
  * Compatibility fix.
144
 
3
  Donate link: http://wpfront.com/donate/
4
  Tags: scroll to top, back to top, scroll top, scroll up, wordpress scroll top
5
  Requires at least: 5.0
6
+ Tested up to: 5.8
7
  Requires PHP: 5.3
8
+ Stable tag: 2.0.5
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
53
 
54
  == Changelog ==
55
 
56
+ = 2.0.5 =
57
+ * XSS fix.
58
+
59
  = 2.0.4 =
60
  * WP compatibility fix.
61
 
142
 
143
  == Upgrade Notice ==
144
 
145
+ = 2.0.5 =
146
+ * XSS fix.
147
+
148
  = 2.0.4 =
149
  * Compatibility fix.
150
 
templates/options-template.php CHANGED
@@ -600,7 +600,7 @@ class WPFront_Scroll_Top_Options_View {
600
  <?php echo $this->options->text_button_css_label(); ?>
601
  </th>
602
  <td>
603
- <textarea name="<?php echo $this->options->text_button_css_name(); ?>" rows="5" cols="100"><?php echo $this->options->text_button_css(); ?></textarea>
604
  <br />
605
  <span class="description"><?php echo '[' . __('ex:', 'wpfront-scroll-top') . ' font-size: 1.5em; padding: 10px;]'; ?></span>
606
  </td>
@@ -689,7 +689,7 @@ class WPFront_Scroll_Top_Options_View {
689
  <?php echo $this->options->fa_button_css_label(); ?>
690
  </th>
691
  <td>
692
- <textarea name="<?php echo $this->options->fa_button_css_name(); ?>" rows="5" cols="100"><?php echo $this->options->fa_button_css(); ?></textarea>
693
  <br />
694
  <span class="description"><?php echo '[' . __('ex:', 'wpfront-scroll-top') . ' #wpfront-scroll-top-container i:hover{ color: #000000; }]'; ?></span>
695
  </td>
600
  <?php echo $this->options->text_button_css_label(); ?>
601
  </th>
602
  <td>
603
+ <textarea name="<?php echo $this->options->text_button_css_name(); ?>" rows="5" cols="100"><?php echo esc_textarea($this->options->text_button_css()); ?></textarea>
604
  <br />
605
  <span class="description"><?php echo '[' . __('ex:', 'wpfront-scroll-top') . ' font-size: 1.5em; padding: 10px;]'; ?></span>
606
  </td>
689
  <?php echo $this->options->fa_button_css_label(); ?>
690
  </th>
691
  <td>
692
+ <textarea name="<?php echo $this->options->fa_button_css_name(); ?>" rows="5" cols="100"><?php echo esc_textarea($this->options->fa_button_css()); ?></textarea>
693
  <br />
694
  <span class="description"><?php echo '[' . __('ex:', 'wpfront-scroll-top') . ' #wpfront-scroll-top-container i:hover{ color: #000000; }]'; ?></span>
695
  </td>
templates/scroll-top-template.php CHANGED
@@ -105,7 +105,7 @@ class WPFront_Scroll_Top_Template {
105
  width: <?php echo $this->options->button_width() == 0 ? 'auto' : $this->options->button_width() . 'px'; ?>;
106
  height: <?php echo $this->options->button_height() == 0 ? 'auto' : $this->options->button_height() . 'px'; ?>;
107
 
108
- <?php echo $this->options->text_button_css(); ?>
109
  }
110
 
111
  #wpfront-scroll-top-container div.text-holder:hover {
@@ -130,7 +130,7 @@ class WPFront_Scroll_Top_Template {
130
  color: <?php echo $this->options->fa_button_text_color(); ?>;
131
  }
132
 
133
- <?php echo $this->options->fa_button_css(); ?>
134
  </style>
135
  <?php
136
  }
105
  width: <?php echo $this->options->button_width() == 0 ? 'auto' : $this->options->button_width() . 'px'; ?>;
106
  height: <?php echo $this->options->button_height() == 0 ? 'auto' : $this->options->button_height() . 'px'; ?>;
107
 
108
+ <?php echo wp_strip_all_tags($this->options->text_button_css(), true); ?>
109
  }
110
 
111
  #wpfront-scroll-top-container div.text-holder:hover {
130
  color: <?php echo $this->options->fa_button_text_color(); ?>;
131
  }
132
 
133
+ <?php echo wp_strip_all_tags($this->options->fa_button_css(), true); ?>
134
  </style>
135
  <?php
136
  }
wpfront-scroll-top.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WPFront Scroll Top
4
  * Plugin URI: http://wpfront.com/scroll-top-plugin/
5
  * Description: Allows the visitor to easily scroll back to the top of the page.
6
- * Version: 2.0.4.04013
7
  * Requires at least: 5.0
8
  * Requires PHP: 5.3
9
  * Author: Syam Mohan
3
  * Plugin Name: WPFront Scroll Top
4
  * Plugin URI: http://wpfront.com/scroll-top-plugin/
5
  * Description: Allows the visitor to easily scroll back to the top of the page.
6
+ * Version: 2.0.5.07184
7
  * Requires at least: 5.0
8
  * Requires PHP: 5.3
9
  * Author: Syam Mohan