Version Description
- Remove accidentally deployed image size update.
Download this release
Release Info
| Developer | peterchester |
| Plugin | |
| Version | 4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 4.0.9 to 4.1
- image-widget.php +6 -6
- readme.txt +7 -3
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.
|
| 8 |
Author URI: http://m.tri.be/26
|
| 9 |
*/
|
| 10 |
|
|
@@ -23,7 +23,7 @@ add_action('widgets_init', 'tribe_load_image_widget');
|
|
| 23 |
**/
|
| 24 |
class Tribe_Image_Widget extends WP_Widget {
|
| 25 |
|
| 26 |
-
const VERSION = '4.
|
| 27 |
|
| 28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
| 29 |
|
|
@@ -298,10 +298,8 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
| 298 |
}
|
| 299 |
$attr = apply_filters( 'image_widget_image_attributes', $attr, $instance );
|
| 300 |
|
| 301 |
-
// If there
|
| 302 |
-
if(
|
| 303 |
-
$output .= wp_get_attachment_image($instance['attachment_id'], $size, false, $attr);
|
| 304 |
-
} elseif ( !empty( $instance['imageurl'] ) ) {
|
| 305 |
// If all we have is an image src url we can still render an image.
|
| 306 |
$attr['src'] = $instance['imageurl'];
|
| 307 |
$attr = array_map( 'esc_attr', $attr );
|
|
@@ -311,6 +309,8 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
| 311 |
$output .= sprintf( ' %s="%s"', $name, $value );
|
| 312 |
}
|
| 313 |
$output .= ' />';
|
|
|
|
|
|
|
| 314 |
}
|
| 315 |
|
| 316 |
if ( $include_link && !empty( $instance['link'] ) ) {
|
| 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.1
|
| 8 |
Author URI: http://m.tri.be/26
|
| 9 |
*/
|
| 10 |
|
| 23 |
**/
|
| 24 |
class Tribe_Image_Widget extends WP_Widget {
|
| 25 |
|
| 26 |
+
const VERSION = '4.1';
|
| 27 |
|
| 28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
| 29 |
|
| 298 |
}
|
| 299 |
$attr = apply_filters( 'image_widget_image_attributes', $attr, $instance );
|
| 300 |
|
| 301 |
+
// If there is an imageurl, use it to render the image. Eventually we should kill this and simply rely on attachment_ids.
|
| 302 |
+
if ( !empty( $instance['imageurl'] ) ) {
|
|
|
|
|
|
|
| 303 |
// If all we have is an image src url we can still render an image.
|
| 304 |
$attr['src'] = $instance['imageurl'];
|
| 305 |
$attr = array_map( 'esc_attr', $attr );
|
| 309 |
$output .= sprintf( ' %s="%s"', $name, $value );
|
| 310 |
}
|
| 311 |
$output .= ' />';
|
| 312 |
+
} elseif( abs( $instance['attachment_id'] ) > 0 ) {
|
| 313 |
+
$output .= wp_get_attachment_image($instance['attachment_id'], $size, false, $attr);
|
| 314 |
}
|
| 315 |
|
| 316 |
if ( $include_link && !empty( $instance['link'] ) ) {
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== Image Widget ===
|
| 2 |
-
Contributors: ModernTribe, peterchester
|
| 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, arabic, brazilian portuguese, dutch, german, hebrew, italian, japanese, polish, spanish, swedish, widget-only
|
| 5 |
Requires at least: 3.5
|
| 6 |
-
Tested up to: 3.
|
| 7 |
-
Stable tag: 4.
|
| 8 |
|
| 9 |
== Description ==
|
| 10 |
|
|
@@ -173,6 +173,10 @@ For more info on the philosophy here, check out our blog post: http://tri.be/def
|
|
| 173 |
|
| 174 |
== Changelog ==
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
= 4.0.9 =
|
| 177 |
|
| 178 |
* Fix image stretching bug in admin (Thanks @kyleunzicker)
|
| 1 |
=== Image Widget ===
|
| 2 |
+
Contributors: ModernTribe, peterchester
|
| 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, arabic, brazilian portuguese, dutch, german, hebrew, italian, japanese, polish, spanish, swedish, widget-only
|
| 5 |
Requires at least: 3.5
|
| 6 |
+
Tested up to: 3.9
|
| 7 |
+
Stable tag: 4.1
|
| 8 |
|
| 9 |
== Description ==
|
| 10 |
|
| 173 |
|
| 174 |
== Changelog ==
|
| 175 |
|
| 176 |
+
= 4.1 =
|
| 177 |
+
|
| 178 |
+
* Remove accidentally deployed image size update.
|
| 179 |
+
|
| 180 |
= 4.0.9 =
|
| 181 |
|
| 182 |
* Fix image stretching bug in admin (Thanks @kyleunzicker)
|
