Image Widget - Version 3.0.6

Version Description

Fix crash on insert into post.

Download this release

Release Info

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

Code changes from version 3.0.5 to 3.0.6

Files changed (5) hide show
  1. image-widget.php +2 -6
  2. readme.txt +22 -16
  3. screenshot-1.png +0 -0
  4. screenshot-2.png +0 -0
  5. screenshot-3.png +0 -0
image-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: This widget accepts a title, an image, a link and a description and displays them.
6
  Author: Shane and Peter, Inc.
7
- Version: 3.0.5
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
@@ -37,7 +37,7 @@ class SP_Image_Widget extends WP_Widget {
37
  wp_enqueue_style( 'thickbox' );
38
  wp_enqueue_script( $control_ops['id_base'], WP_PLUGIN_URL.'/image-widget/image-widget.js' );
39
  // add our filter to send modified output back to image widget
40
- add_filter( 'image_send_to_editor', array( $this,'image_send_to_editor'), 10, 7 );
41
  add_action( 'admin_head-widgets.php', array( $this, 'admin_head' ) );
42
  }
43
  }
@@ -148,11 +148,7 @@ class SP_Image_Widget extends WP_Widget {
148
  if (!empty($instance['description'])) {
149
  $text = apply_filters( 'widget_text', $instance['description'] );
150
  echo '<p class="'.$this->widget_ops['classname'].'-description" >';
151
- if ($instance['link']) {
152
- echo '<a class="'.$this->widget_ops['classname'].'-image-link-p" href="'.$instance['link'].'" target="'.$instance['linktarget'].'">';
153
- }
154
  echo wpautop($text);
155
- if ($instance['link']) { echo '</a>'; }
156
  echo "</p>";
157
  }
158
  echo $after_widget;
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: This widget accepts a title, an image, a link and a description and displays them.
6
  Author: Shane and Peter, Inc.
7
+ Version: 3.0.6
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
37
  wp_enqueue_style( 'thickbox' );
38
  wp_enqueue_script( $control_ops['id_base'], WP_PLUGIN_URL.'/image-widget/image-widget.js' );
39
  // add our filter to send modified output back to image widget
40
+ add_filter( 'image_send_to_editor', array( $this,'image_send_to_editor'), 1, 7 );
41
  add_action( 'admin_head-widgets.php', array( $this, 'admin_head' ) );
42
  }
43
  }
148
  if (!empty($instance['description'])) {
149
  $text = apply_filters( 'widget_text', $instance['description'] );
150
  echo '<p class="'.$this->widget_ops['classname'].'-description" >';
 
 
 
151
  echo wpautop($text);
 
152
  echo "</p>";
153
  }
154
  echo $after_widget;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Image Widget ===
2
  Contributors: Shane & Peter, Inc.
3
  Donate link: http://www.shaneandpeter.com
4
- Tags: widget, image, ad, banner, simple, upload, sidebar
5
  Requires at least: 2.8
6
  Tested up to: 2.8.4
7
- Stable tag: 3.0.5
8
 
9
  == Description ==
10
 
@@ -19,12 +19,12 @@ Simple image widget. Use native Wordpress upload thickbox to add image widgets
19
 
20
  == Installation ==
21
 
22
- **Install**
23
 
24
  1. Unzip the `image-widget.zip` file.
25
  1. Upload the the `image-widget` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
26
 
27
- **Activate**
28
 
29
  1. In your WordPress administration, go to the Plugins page
30
  1. Activate the Image Widget plugin and a subpage for the plugin will appear
@@ -35,7 +35,11 @@ If you find any bugs or have any ideas, please mail us.
35
 
36
  == Changelog ==
37
 
38
- New in version 3.0.5
 
 
 
 
39
 
40
  Thank you smurkas, squigie and laurie!!! Special thanks to Cameron Clark from http://prolifique.com a.k.a capnhairdo for contributing invaluable javascript debugging skills and throwing together some great code.
41
 
@@ -44,46 +48,46 @@ Thank you smurkas, squigie and laurie!!! Special thanks to Cameron Clark from h
44
  * Tighter image resize preview
45
  * Add Image link becomes "Change Image" once image has been added
46
 
47
- New in version 3.0.4
48
 
49
  * Minor description changes
50
 
51
- New in version 3.0.3
52
 
53
  * Fixed the broken "Add Image" link (THANK YOU SMURKAS!!!)
54
 
55
- New in version 3.0.2
56
 
57
  * Added PHPDoc comments
58
  * Temporarily fixed install bug where no image is saved if resize is not working. (thank you Paul Kaiser from Champaign, Il for your helpful QA support)
59
 
60
- New in version 3.0.1
61
 
62
  * Added 'sp_image_widget' domain for language support.
63
 
64
- New in version 3.0
65
 
66
  * Completely remodeled the plugin to use the native wordpress uploader and be compatible with Wordpress 2.8 plugin architecture.
67
  * Removed externalized widget admin.
68
 
69
- New in version 2.2.2
70
 
71
  * Update <li> to be $before_widget and $after_widget (Thanks again to Lois Turley)
72
 
73
- New in version 2.2.1
74
 
75
  * Update <div> to be <li> (Thanks to Lois Turley)
76
 
77
- New in version 2.2
78
 
79
  * Fixed missing DIV close tag (Thank you Jesper Goos)
80
  * Updated all short tags to proper php tags (Thank you Jonathan Volks from Mannix Marketing)
81
 
82
- New in version 2.1
83
 
84
  * Link Target
85
 
86
- New in version 2.0
87
 
88
  * Multi widget support
89
  * WP 2.7.1 Compatibility
@@ -91,4 +95,6 @@ New in version 2.0
91
 
92
  == Screenshots ==
93
 
94
- 1. Image administration screen
 
 
1
  === Image Widget ===
2
  Contributors: Shane & Peter, Inc.
3
  Donate link: http://www.shaneandpeter.com
4
+ Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
5
  Requires at least: 2.8
6
  Tested up to: 2.8.4
7
+ Stable tag: 3.0.6
8
 
9
  == Description ==
10
 
19
 
20
  == Installation ==
21
 
22
+ = Install =
23
 
24
  1. Unzip the `image-widget.zip` file.
25
  1. Upload the the `image-widget` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
26
 
27
+ = Activate =
28
 
29
  1. In your WordPress administration, go to the Plugins page
30
  1. Activate the Image Widget plugin and a subpage for the plugin will appear
35
 
36
  == Changelog ==
37
 
38
+ = 3.0.6 =
39
+
40
+ Fix crash on insert into post.
41
+
42
+ = 3.0.5 =
43
 
44
  Thank you smurkas, squigie and laurie!!! Special thanks to Cameron Clark from http://prolifique.com a.k.a capnhairdo for contributing invaluable javascript debugging skills and throwing together some great code.
45
 
48
  * Tighter image resize preview
49
  * Add Image link becomes "Change Image" once image has been added
50
 
51
+ = 3.0.4 =
52
 
53
  * Minor description changes
54
 
55
+ = 3.0.3 =
56
 
57
  * Fixed the broken "Add Image" link (THANK YOU SMURKAS!!!)
58
 
59
+ = 3.0.2 =
60
 
61
  * Added PHPDoc comments
62
  * Temporarily fixed install bug where no image is saved if resize is not working. (thank you Paul Kaiser from Champaign, Il for your helpful QA support)
63
 
64
+ = 3.0.1 =
65
 
66
  * Added 'sp_image_widget' domain for language support.
67
 
68
+ = 3.0 =
69
 
70
  * Completely remodeled the plugin to use the native wordpress uploader and be compatible with Wordpress 2.8 plugin architecture.
71
  * Removed externalized widget admin.
72
 
73
+ = 2.2.2 =
74
 
75
  * Update <li> to be $before_widget and $after_widget (Thanks again to Lois Turley)
76
 
77
+ = 2.2.1 =
78
 
79
  * Update <div> to be <li> (Thanks to Lois Turley)
80
 
81
+ = 2.2 =
82
 
83
  * Fixed missing DIV close tag (Thank you Jesper Goos)
84
  * Updated all short tags to proper php tags (Thank you Jonathan Volks from Mannix Marketing)
85
 
86
+ = 2.1 =
87
 
88
  * Link Target
89
 
90
+ = 2.0 =
91
 
92
  * Multi widget support
93
  * WP 2.7.1 Compatibility
95
 
96
  == Screenshots ==
97
 
98
+ 1. Image Widget admin screen.
99
+ 2. Thickbox uploader for the Image Widget
100
+ 3. Image Widget on the front of a plain Wordpress install.
screenshot-1.png CHANGED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file