Widget Context - Version 0.4.5

Version Description

Download this release

Release Info

Developer kasparsd
Plugin Icon 128x128 Widget Context
Version 0.4.5
Comparing to
See all releases

Code changes from version 0.4.4 to 0.4.5

Files changed (2) hide show
  1. readme.txt +3 -6
  2. widget-context.php +6 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kasparsd
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kaspars%40konstruktors%2ecom&item_name=Widget%20Context%20Plugin%20for%20WordPress&no_shipping=1&no_note=1&tax=0&currency_code=EUR&lc=LV&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: widget, widget context, context, logic, widget logic
5
  Requires at least: 2.8
6
- Tested up to: 2.8.1
7
- Stable tag: 0.4.4
8
 
9
  Show widgets in context -- only on certain posts, on front page, etc.
10
 
@@ -20,9 +20,6 @@ Install the plugin through **Add New Plugin** feature in your WordPress dashboar
20
 
21
  == Changelog ==
22
 
 
23
  * **0.4.4** -- Fixed widget control parameter transfer for widgets that don't use the new widget api.
24
  * **0.4.2** -- Initial release on Plugin repository.
25
-
26
- == Screenshots ==
27
-
28
- 1. Widget Context Settings
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kaspars%40konstruktors%2ecom&item_name=Widget%20Context%20Plugin%20for%20WordPress&no_shipping=1&no_note=1&tax=0&currency_code=EUR&lc=LV&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: widget, widget context, context, logic, widget logic
5
  Requires at least: 2.8
6
+ Tested up to: 2.8.2
7
+ Stable tag: 0.4.5
8
 
9
  Show widgets in context -- only on certain posts, on front page, etc.
10
 
20
 
21
  == Changelog ==
22
 
23
+ * **0.4.5** -- Widget output callback couldn't determine the widget_id.
24
  * **0.4.4** -- Fixed widget control parameter transfer for widgets that don't use the new widget api.
25
  * **0.4.2** -- Initial release on Plugin repository.
 
 
 
 
widget-context.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Widget Context
4
  Plugin URI: http://konstruktors.com/blog/
5
  Description: Display widgets in context.
6
- Version: 0.4.4
7
  Author: Kaspars Dambis
8
  Author URI: http://konstruktors.com/blog/
9
 
@@ -145,7 +145,11 @@ class widget_context {
145
 
146
  $all_params = func_get_args();
147
 
148
- $widget_id = $all_params[2]['widget_id'];
 
 
 
 
149
  $widget_callback = $wp_registered_widgets[$widget_id]['callback_original_wc'];
150
 
151
  // Get widget logic options and check visibility settings
3
  Plugin Name: Widget Context
4
  Plugin URI: http://konstruktors.com/blog/
5
  Description: Display widgets in context.
6
+ Version: 0.4.5
7
  Author: Kaspars Dambis
8
  Author URI: http://konstruktors.com/blog/
9
 
145
 
146
  $all_params = func_get_args();
147
 
148
+ if (is_array($all_params[2]))
149
+ $widget_id = $all_params[2]['widget_id'];
150
+ else
151
+ $widget_id = $all_params[1]['widget_id'];
152
+
153
  $widget_callback = $wp_registered_widgets[$widget_id]['callback_original_wc'];
154
 
155
  // Get widget logic options and check visibility settings