Scroll Back To Top - Version 1.1.3

Version Description

  • Addresses PHP error in versions of PHP prior to 5.3
Download this release

Release Info

Developer joesexton00
Plugin Icon wp plugin Scroll Back To Top
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

controller/SBTT_AdminMenuController.php CHANGED
@@ -56,18 +56,18 @@ class SBTT_AdminMenuController extends JmsAdminSettingsPage {
56
  $wp_option['version'] = $options->getVersion();
57
 
58
  if ( !isset( $wp_option['min_resolution'] ) ) {
59
- $wp_option['min_resolution'] = $defaults['min_resolution'] ?: 0;
60
  }
61
  if ( !isset( $wp_option['max_resolution'] ) ) {
62
- $wp_option['max_resolution'] = $defaults['max_resolution'] ?: 9999;
63
  }
64
  if ( !isset( $wp_option['visibility_duration'] ) ) {
65
- $wp_option['visibility_duration'] = $defaults['visibility_duration'] ?: 0;
66
  }
67
  if ( !isset( $wp_option['color_foreground_hover'] ) && isset( $wp_option['color_foreground'] ) ) {
68
  $wp_option['color_foreground_hover'] = $wp_option['color_foreground'];
69
  } elseif ( !isset( $wp_option['color_foreground_hover'] ) ) {
70
- $wp_option['color_foreground_hover'] = $defaults['color_foreground_hover'] ?: '#eeeeee';
71
  }
72
 
73
  update_option($key, $wp_option);
56
  $wp_option['version'] = $options->getVersion();
57
 
58
  if ( !isset( $wp_option['min_resolution'] ) ) {
59
+ $wp_option['min_resolution'] = isset( $defaults['min_resolution'] ) ? $defaults['min_resolution'] : 0;
60
  }
61
  if ( !isset( $wp_option['max_resolution'] ) ) {
62
+ $wp_option['max_resolution'] = isset( $defaults['max_resolution'] ) ? $defaults['max_resolution'] : 9999;
63
  }
64
  if ( !isset( $wp_option['visibility_duration'] ) ) {
65
+ $wp_option['visibility_duration'] = isset( $defaults['visibility_duration'] ) ? $defaults['visibility_duration'] : 0;
66
  }
67
  if ( !isset( $wp_option['color_foreground_hover'] ) && isset( $wp_option['color_foreground'] ) ) {
68
  $wp_option['color_foreground_hover'] = $wp_option['color_foreground'];
69
  } elseif ( !isset( $wp_option['color_foreground_hover'] ) ) {
70
+ $wp_option['color_foreground_hover'] = isset( $defaults['color_foreground_hover'] ) ? $defaults['color_foreground_hover'] : '#eeeeee';
71
  }
72
 
73
  update_option($key, $wp_option);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: joesexton00
3
  Tags: back to top, jquery, scroll to top, button, scroll, scroll top, scroll back to top, scroll up, widget, icon, scroller, vertical scroller, arrow, link to top, back to top, smooth scroll, top, back
4
  Requires at least: 3.0
5
  Tested up to: 3.9
6
- Stable tag: 1.1.2
7
 
8
  This plugin will add a button that allows users to scroll smoothly to the top of the page.
9
 
@@ -63,6 +63,9 @@ Absolutely not. This plugin is designed to work immediately upon activation, wi
63
 
64
  == Change Log ==
65
 
 
 
 
66
  = 1.1.2 =
67
  - Addresses PHP error in versions of PHP prior to 5.3
68
 
3
  Tags: back to top, jquery, scroll to top, button, scroll, scroll top, scroll back to top, scroll up, widget, icon, scroller, vertical scroller, arrow, link to top, back to top, smooth scroll, top, back
4
  Requires at least: 3.0
5
  Tested up to: 3.9
6
+ Stable tag: 1.1.3
7
 
8
  This plugin will add a button that allows users to scroll smoothly to the top of the page.
9
 
63
 
64
  == Change Log ==
65
 
66
+ = 1.1.3 =
67
+ - Addresses PHP error in versions of PHP prior to 5.3
68
+
69
  = 1.1.2 =
70
  - Addresses PHP error in versions of PHP prior to 5.3
71
 
scroll-back-to-top.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Scroll Back to Top
4
  Description: Adds a scroll to top button
5
  Plugin URI: http://www.webtipblog.com/scroll-back-top-wordpress-plugin/
6
  Text Domain: scroll-back-to-top
7
- Version: 1.1.2
8
  Author: Joe Sexton
9
  Author URI: http://www.josephmsexton.com
10
  */
4
  Description: Adds a scroll to top button
5
  Plugin URI: http://www.webtipblog.com/scroll-back-top-wordpress-plugin/
6
  Text Domain: scroll-back-to-top
7
+ Version: 1.1.3
8
  Author: Joe Sexton
9
  Author URI: http://www.josephmsexton.com
10
  */