WPFront Scroll Top - Version 2.0.6

Version Description

  • XSS fix. Thanks to 'Asif Nawaz Minhas'.
Download this release

Release Info

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

Code changes from version 2.0.5 to 2.0.6

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.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';
37
  class WPFront_Scroll_Top {
38
 
39
  //Constants
40
+ const VERSION = '2.0.6.07225';
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
@@ -5,7 +5,7 @@ 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,6 +53,9 @@ Visit [WPFront Scroll Top FAQ](http://wpfront.com/scroll-top-plugin-faq/) page f
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 2.0.5 =
57
  * XSS fix.
58
 
@@ -142,6 +145,9 @@ Visit [WPFront Scroll Top FAQ](http://wpfront.com/scroll-top-plugin-faq/) page f
142
 
143
  == Upgrade Notice ==
144
 
 
 
 
145
  = 2.0.5 =
146
  * XSS fix.
147
 
5
  Requires at least: 5.0
6
  Tested up to: 5.8
7
  Requires PHP: 5.3
8
+ Stable tag: 2.0.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
53
 
54
  == Changelog ==
55
 
56
+ = 2.0.6 =
57
+ * XSS fix. Thanks to 'Asif Nawaz Minhas'.
58
+
59
  = 2.0.5 =
60
  * XSS fix.
61
 
145
 
146
  == Upgrade Notice ==
147
 
148
+ = 2.0.6 =
149
+ * XSS fix.
150
+
151
  = 2.0.5 =
152
  * XSS fix.
153
 
templates/options-template.php CHANGED
@@ -717,7 +717,7 @@ class WPFront_Scroll_Top_Options_View {
717
  <div>
718
  <input id="custom" name="<?php echo $this->options->image_name(); ?>" type="radio" value="custom" <?php echo ($this->options->image() == 'custom' ? 'checked' : ''); ?> />
719
  <label for="custom"><?php echo __('Custom URL', 'wpfront-scroll-top'); ?>
720
- <input id="custom-url-textbox" class="url" name="<?php echo $this->options->custom_url_name(); ?>" value="<?php echo $this->options->custom_url(); ?>"/>
721
  <input type="button" id="media-library-button" class="button" value="<?php echo __('Media Library', 'wpfront-scroll-top'); ?>" />
722
  </label>
723
  </div>
@@ -727,7 +727,7 @@ class WPFront_Scroll_Top_Options_View {
727
  <?php echo $this->options->image_alt_label(); ?>
728
  </th>
729
  <td>
730
- <input id="alt-textbox" class="altText" name="<?php echo $this->options->image_alt_name(); ?>" value="<?php echo $this->options->image_alt(); ?>" />
731
  </td>
732
  </tr>
733
  </table>
717
  <div>
718
  <input id="custom" name="<?php echo $this->options->image_name(); ?>" type="radio" value="custom" <?php echo ($this->options->image() == 'custom' ? 'checked' : ''); ?> />
719
  <label for="custom"><?php echo __('Custom URL', 'wpfront-scroll-top'); ?>
720
+ <input id="custom-url-textbox" class="url" name="<?php echo $this->options->custom_url_name(); ?>" value="<?php echo esc_attr($this->options->custom_url()); ?>"/>
721
  <input type="button" id="media-library-button" class="button" value="<?php echo __('Media Library', 'wpfront-scroll-top'); ?>" />
722
  </label>
723
  </div>
727
  <?php echo $this->options->image_alt_label(); ?>
728
  </th>
729
  <td>
730
+ <input id="alt-textbox" class="altText" name="<?php echo $this->options->image_alt_name(); ?>" value="<?php echo esc_attr($this->options->image_alt()); ?>" />
731
  </td>
732
  </tr>
733
  </table>
templates/scroll-top-template.php CHANGED
@@ -139,7 +139,7 @@ class WPFront_Scroll_Top_Template {
139
  ?>
140
  <div id="wpfront-scroll-top-container">
141
  <?php
142
- $html = sprintf('<img src="%s" alt="%s" />', $this->controller->image(), $this->options->image_alt());
143
  $html = $this->controller->apply_button_action_html($html);
144
  echo $html;
145
  ?>
139
  ?>
140
  <div id="wpfront-scroll-top-container">
141
  <?php
142
+ $html = sprintf('<img src="%s" alt="%s" />', esc_attr($this->controller->image()), esc_attr($this->options->image_alt()));
143
  $html = $this->controller->apply_button_action_html($html);
144
  echo $html;
145
  ?>
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.5.07184
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.6.07225
7
  * Requires at least: 5.0
8
  * Requires PHP: 5.3
9
  * Author: Syam Mohan