Image Widget - Version 4.0.4

Version Description

Super minor fix to enable saving of a blank caption. (thanks @crdunst)

Download this release

Release Info

Developer peterchester
Plugin Icon 128x128 Image Widget
Version 4.0.4
Comparing to
See all releases

Code changes from version 4.0.3 to 4.0.4

Files changed (2) hide show
  1. image-widget.php +5 -7
  2. readme.txt +5 -1
image-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site.
6
  Author: Modern Tribe, Inc.
7
- Version: 4.0.3
8
  Author URI: http://tri.be
9
  */
10
 
@@ -120,12 +120,10 @@ class Tribe_Image_Widget extends WP_Widget {
120
  $instance = $old_instance;
121
  $new_instance = wp_parse_args( (array) $new_instance, self::get_defaults() );
122
  $instance['title'] = strip_tags($new_instance['title']);
123
- if ( !empty( $new_instance['description'] ) ) {
124
- if ( current_user_can('unfiltered_html') ) {
125
- $instance['description'] = $new_instance['description'];
126
- } else {
127
- $instance['description'] = wp_filter_post_kses($new_instance['description']);
128
- }
129
  }
130
  $instance['link'] = $new_instance['link'];
131
  $instance['linktarget'] = $new_instance['linktarget'];
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site.
6
  Author: Modern Tribe, Inc.
7
+ Version: 4.0.4
8
  Author URI: http://tri.be
9
  */
10
 
120
  $instance = $old_instance;
121
  $new_instance = wp_parse_args( (array) $new_instance, self::get_defaults() );
122
  $instance['title'] = strip_tags($new_instance['title']);
123
+ if ( current_user_can('unfiltered_html') ) {
124
+ $instance['description'] = $new_instance['description'];
125
+ } else {
126
+ $instance['description'] = wp_filter_post_kses($new_instance['description']);
 
 
127
  }
128
  $instance['link'] = $new_instance['link'];
129
  $instance['linktarget'] = $new_instance['linktarget'];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize, brazilian portuguese, dutch, italian, spanish, swedish, widget-only
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
- Stable tag: 4.0.3
8
 
9
  == Description ==
10
 
@@ -149,6 +149,10 @@ Accepts $instance arguments
149
 
150
  == Changelog ==
151
 
 
 
 
 
152
  = 4.0.3 =
153
 
154
  Fixed javascript bug caused by log message.
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize, brazilian portuguese, dutch, italian, spanish, swedish, widget-only
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
+ Stable tag: 4.0.4
8
 
9
  == Description ==
10
 
149
 
150
  == Changelog ==
151
 
152
+ = 4.0.4 =
153
+
154
+ Super minor fix to enable saving of a blank caption. (thanks @crdunst)
155
+
156
  = 4.0.3 =
157
 
158
  Fixed javascript bug caused by log message.