Image Widget - Version 3.2.4

Version Description

  • Added javascript conflict prevention code thanks to @rcain.
Download this release

Release Info

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

Code changes from version 3.2.3 to 3.2.4

Files changed (3) hide show
  1. image-widget.js +2 -1
  2. image-widget.php +1 -1
  3. readme.txt +15 -11
image-widget.js CHANGED
@@ -2,7 +2,7 @@ function set_active_widget(instance_id) {
2
  self.IW_instance = instance_id;
3
  }
4
 
5
- function send_to_editor(h) {
6
  // ignore content returned from media uploader and use variables passed to window instead
7
 
8
  // store attachment id in hidden field
@@ -90,6 +90,7 @@ function changeImgAlign(instance) {
90
  jQuery(document).ready(function() {
91
  jQuery("body").click(function(event) {
92
  if (jQuery(event.target).is('a.thickbox-image-widget')) {
 
93
  tb_show("Add an Image", event.target.href, false);
94
  }
95
  });
2
  self.IW_instance = instance_id;
3
  }
4
 
5
+ function image_widget_send_to_editor(h) {
6
  // ignore content returned from media uploader and use variables passed to window instead
7
 
8
  // store attachment id in hidden field
90
  jQuery(document).ready(function() {
91
  jQuery("body").click(function(event) {
92
  if (jQuery(event.target).is('a.thickbox-image-widget')) {
93
+ window.send_to_editor = window.image_widget_send_to_editor;
94
  tb_show("Add an Image", event.target.href, false);
95
  }
96
  });
image-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
6
  Author: Shane and Peter, Inc.
7
- Version: 3.2.3
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
6
  Author: Shane and Peter, Inc.
7
+ Version: 3.2.4
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Shane & Peter, Inc.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
5
  Requires at least: 3.0
6
- Tested up to: 3.0.1
7
- Stable tag: 3.2.3
8
 
9
  == Description ==
10
 
@@ -67,9 +67,13 @@ function my_template_filter($template) {
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 3.2.3 =
71
 
72
- * Added French translation courtesy of Dominique Corbex (Domcox)
73
 
74
  = 3.2.2 =
75
 
@@ -87,11 +91,11 @@ function my_template_filter($template) {
87
 
88
  = 3.1.6 =
89
 
90
- * Fixed Wordpress 3.0 bugs. (Thanks kenvunz)
91
 
92
  = 3.1.5 =
93
 
94
- Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/topic/362167 Thanks mpwalsh8, jleuze, PoLaR5, NancyA and phoney36
95
 
96
  = 3.1.4 =
97
 
@@ -103,12 +107,12 @@ Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/top
103
 
104
  = 3.1.2 =
105
 
106
- * Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks webmasterlistingarts for filing the bug)
107
  * Replaced `<p>` with `<div>` in description to also improve XHTML compliance.
108
 
109
  = 3.1.1 =
110
 
111
- * Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks natashaelaine and massimopaolini)
112
 
113
  = 3.0.10 =
114
 
@@ -125,8 +129,8 @@ Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/top
125
 
126
  = 3.0.7 =
127
 
128
- * Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie L_T_G)
129
- * Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report reface)
130
  * Update functions and enqueued scripts to only trigger on widget page.
131
 
132
  = 3.0.6 =
@@ -135,7 +139,7 @@ Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/top
135
 
136
  = 3.0.5 =
137
 
138
- 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.
139
 
140
  * PHP4 compatibility
141
  * Tighter integration with the thickbok uploader attributes including caption, description, alignment, and link
@@ -148,7 +152,7 @@ Thank you smurkas, squigie and laurie!!! Special thanks to Cameron Clark from h
148
 
149
  = 3.0.3 =
150
 
151
- * Fixed the broken "Add Image" link (THANK YOU SMURKAS!!!)
152
 
153
  = 3.0.2 =
154
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
5
  Requires at least: 3.0
6
+ Tested up to: 3.1
7
+ Stable tag: 3.2.4
8
 
9
  == Description ==
10
 
67
 
68
  == Changelog ==
69
 
70
+ = 3.2.4 =
71
+
72
+ * Added javascript conflict prevention code thanks to @rcain.
73
+
74
  = 3.2.3 =
75
 
76
+ * Added French translation courtesy of Dominique Corbex (@Domcox)
77
 
78
  = 3.2.2 =
79
 
91
 
92
  = 3.1.6 =
93
 
94
+ * Fixed Wordpress 3.0 bugs. (Thanks @kenvunz)
95
 
96
  = 3.1.5 =
97
 
98
+ Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/topic/362167 Thanks @mpwalsh8, @jleuze, @PoLaR5, @NancyA and @phoney36
99
 
100
  = 3.1.4 =
101
 
107
 
108
  = 3.1.2 =
109
 
110
+ * Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks @webmasterlistingarts for filing the bug)
111
  * Replaced `<p>` with `<div>` in description to also improve XHTML compliance.
112
 
113
  = 3.1.1 =
114
 
115
+ * Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks @natashaelaine and @massimopaolini)
116
 
117
  = 3.0.10 =
118
 
129
 
130
  = 3.0.7 =
131
 
132
+ * Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie @L_T_G)
133
+ * Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report @reface)
134
  * Update functions and enqueued scripts to only trigger on widget page.
135
 
136
  = 3.0.6 =
139
 
140
  = 3.0.5 =
141
 
142
+ 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.
143
 
144
  * PHP4 compatibility
145
  * Tighter integration with the thickbok uploader attributes including caption, description, alignment, and link
152
 
153
  = 3.0.3 =
154
 
155
+ * Fixed the broken "Add Image" link (THANK YOU @SMURKAS!!!)
156
 
157
  = 3.0.2 =
158