diff --git a/image-widget.php b/image-widget.php
index 80e24b0..36e3d5f 100644
--- a/image-widget.php
+++ b/image-widget.php
@@ -2,9 +2,9 @@
/*
Plugin Name: Image Widget
Plugin URI: http://wordpress.org/plugins/image-widget/
-Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site. COMING SOON: Image Widget Plus - Multiple images, slider and more.
+Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site. COMING SOON: Image Widget Plus - Multiple images, slider and more.
Author: Modern Tribe, Inc.
-Version: 4.4
+Version: 4.4.1
Author URI: http://m.tri.be/iwpdoc
Text Domain: image-widget
Domain Path: /lang
@@ -26,7 +26,7 @@ function tribe_load_image_widget() {
**/
class Tribe_Image_Widget extends WP_Widget {
- const VERSION = '4.4';
+ const VERSION = '4.4.1';
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
@@ -57,7 +57,7 @@ public function __construct() {
add_action( 'admin_notices', array( $this, 'post_upgrade_nag' ) );
add_action( 'network_admin_notices', array( $this, 'post_upgrade_nag' ) );
- add_action( 'wp_ajax_dismissed_image_widget_notice_handler', array( $this, 'ajax_notice_handler' ) );
+ add_action( 'wp_ajax_dismissed_image_widget_notice_handler', array( $this, 'ajax_notice_handler' ) );
}
/**
@@ -291,7 +291,7 @@ private function get_image_html( $instance, $include_link = true ) {
$instance['height'] = $image_details[2];
}
- $image_srcset = wp_get_attachment_image_srcset( $instance['attachment_id'], $size);
+ $image_srcset = wp_get_attachment_image_srcset( $instance['attachment_id'], $size );
if ( $image_srcset ) {
$instance['srcset'] = $image_srcset;
}
@@ -321,10 +321,10 @@ private function get_image_html( $instance, $include_link = true ) {
if ( ! empty( $instance['align'] ) && $instance['align'] != 'none' ) {
$attr['class'] .= " align{$instance['align']}";
}
- if ( !empty($instance['srcset'] ) ) {
+ if ( ! empty( $instance['srcset'] ) ) {
$attr['srcset'] = $instance['srcset'];
}
- if ( ! empty($instance['sizes'] ) ) {
+ if ( ! empty( $instance['sizes'] ) ) {
$attr['sizes'] = $instance['sizes'];
}
$attr = apply_filters( 'image_widget_image_attributes', $attr, $instance );
@@ -447,11 +447,11 @@ public function post_upgrade_nag() {
break;
case 'widgets.php' :
$msg = $this->upgrade_nag_widget_admin_msg();
- break;
+ break;
}
-
- if ( !$msg ) return;
-
+
+ if ( ! $msg ) return;
+
echo $msg;
?>