Q2W3 Fixed Widget - Version 5.0.3

Version Description

  • Improved solution for "q2w3_sidebar_options is not defined" error.
Download this release

Release Info

Developer Max Bond
Plugin Icon 128x128 Q2W3 Fixed Widget
Version 5.0.3
Comparing to
See all releases

Code changes from version 5.0.2 to 5.0.3

Files changed (2) hide show
  1. q2w3-fixed-widget.php +5 -5
  2. readme.txt +4 -1
q2w3-fixed-widget.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.q2w3.ru/q2w3-fixed-widget-wordpress-plugin/
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Text Domain: q2w3-fixed-widget
7
  Author: Max Bond
8
- Version: 5.0.2
9
  Author URI: http://www.q2w3.ru/
10
  */
11
 
@@ -54,10 +54,8 @@ class q2w3_fixed_widget { // Plugin class
54
 
55
  add_action('wp_loaded', array( __CLASS__, 'custom_ids' ));
56
 
57
- //add_action('wp_footer', array( __CLASS__, 'js_settings' ), 1);
58
-
59
- add_action('wp_print_footer_scripts', array( __CLASS__, 'js_settings' ), 1);
60
-
61
  add_action('wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ));
62
 
63
  }
@@ -77,6 +75,8 @@ class q2w3_fixed_widget { // Plugin class
77
  if ( isset($instance['q2w3_fixed_widget']) && $instance['q2w3_fixed_widget'] ) {
78
 
79
  self::$fixed_widgets[$args['id']][$widget->id] = "'". $widget->id ."'";
 
 
80
 
81
  }
82
 
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Text Domain: q2w3-fixed-widget
7
  Author: Max Bond
8
+ Version: 5.0.3
9
  Author URI: http://www.q2w3.ru/
10
  */
11
 
54
 
55
  add_action('wp_loaded', array( __CLASS__, 'custom_ids' ));
56
 
57
+ add_action('wp_footer', array( __CLASS__, 'js_settings' ));
58
+
 
 
59
  add_action('wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ));
60
 
61
  }
75
  if ( isset($instance['q2w3_fixed_widget']) && $instance['q2w3_fixed_widget'] ) {
76
 
77
  self::$fixed_widgets[$args['id']][$widget->id] = "'". $widget->id ."'";
78
+
79
+ echo '<!-- fixed widget -->';
80
 
81
  }
82
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Max Bond
3
  Tags: sidebar, widget, scroll, scrolling, fixed, fixed widget, floating, floating widget, sticky, sticky widget, russian, q2w3
4
  Requires at least: 4.0
5
  Tested up to: 4.6
6
- Stable tag: 5.0.2
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
@@ -82,6 +82,9 @@ Other Q2W3 plugins:
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 5.0.2 =
86
  * Plugin javascript optimization
87
  * To resolve "q2w3_sidebar_options is not defined" error `wp_add_inline_script` function is used. WordPress 4.5 required for this fix!
3
  Tags: sidebar, widget, scroll, scrolling, fixed, fixed widget, floating, floating widget, sticky, sticky widget, russian, q2w3
4
  Requires at least: 4.0
5
  Tested up to: 4.6
6
+ Stable tag: 5.0.3
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
82
 
83
  == Changelog ==
84
 
85
+ = 5.0.3 =
86
+ * Improved solution for "q2w3_sidebar_options is not defined" error.
87
+
88
  = 5.0.2 =
89
  * Plugin javascript optimization
90
  * To resolve "q2w3_sidebar_options is not defined" error `wp_add_inline_script` function is used. WordPress 4.5 required for this fix!