To Top - Version 1.5.1

Version Description

  • Bug Fixed: array_merge issue in some php versions
Download this release

Release Info

Developer catchthemes
Plugin Icon 128x128 To Top
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

Files changed (3) hide show
  1. README.txt +4 -1
  2. languages/to-top.pot +1 -1
  3. to-top.php +4 -3
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://catchthemes.com/wp-plugins/to-top/
4
  Tags: to-top, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
5
  Requires at least: 4.5
6
  Tested up to: 4.7.1
7
- Stable tag: 1.5
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
@@ -57,6 +57,9 @@ You'll then see To Top dashboard from which you can enable or disable the button
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.5 =
61
  * Bug Fixed: Display on hover without scrolling issue
62
 
4
  Tags: to-top, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
5
  Requires at least: 4.5
6
  Tested up to: 4.7.1
7
+ Stable tag: 1.5.1
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.5.1 =
61
+ * Bug Fixed: array_merge issue in some php versions
62
+
63
  = 1.5 =
64
  * Bug Fixed: Display on hover without scrolling issue
65
 
languages/to-top.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: To Top\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
- "POT-Creation-Date: 2017-01-16 14:11+0545\n"
9
  "PO-Revision-Date: 2016-12-07 23:04-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
11
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
5
  msgstr ""
6
  "Project-Id-Version: To Top\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
+ "POT-Creation-Date: 2017-01-29 10:47+0545\n"
9
  "PO-Revision-Date: 2016-12-07 23:04-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
11
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
to-top.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
6
  * Author: Catch Themes
7
  * Author URI: https://catchthemes.com/
8
- * Version: 1.5
9
  * License: GNU General Public License, version 3 (GPLv3)
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
  * Text Domain: to-top
@@ -87,9 +87,10 @@ run_to_top();
87
  * @since 1.0
88
  */
89
  function to_top_get_options(){
90
- $to_top_default_options = to_top_default_options();
 
91
 
92
- return array_merge( $to_top_default_options , get_option( 'to_top_options', $to_top_default_options ) ) ;
93
  }
94
 
95
  /**
5
  * Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
6
  * Author: Catch Themes
7
  * Author URI: https://catchthemes.com/
8
+ * Version: 1.5.1
9
  * License: GNU General Public License, version 3 (GPLv3)
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
  * Text Domain: to-top
87
  * @since 1.0
88
  */
89
  function to_top_get_options(){
90
+ $defaults = to_top_default_options();
91
+ $options = get_option( 'to_top_options', $defaults );
92
 
93
+ return wp_parse_args( $options, $defaults ) ;
94
  }
95
 
96
  /**