Version Description
- Rename all language files and implement a couple more minor language bug fixes a la @understandard
- Added support for the constant 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET' to turn off the message that appears after upgrading. (@crienoloog, i hope this puts a smile on your face.)
Download this release
Release Info
Developer | peterchester |
Plugin | Image Widget |
Version | 4.0.6 |
Comparing to | |
See all releases |
Code changes from version 4.0.5 to 4.0.6
- image-widget.php +5 -3
- lang/{image-widget-ar_AR.mo → image_widget-ar_AR.mo} +0 -0
- lang/{image-widget-ar_AR.po → image_widget-ar_AR.po} +0 -0
- lang/{image-widget-en_EN.mo → image_widget-en_EN.mo} +0 -0
- lang/{image-widget-en_EN.po → image_widget-en_EN.po} +0 -0
- lang/{image-widget-es_ES.mo → image_widget-es_ES.mo} +0 -0
- lang/{image-widget-es_ES.po → image_widget-es_ES.po} +0 -0
- lang/{image-widget-it_IT.mo → image_widget-it_IT.mo} +0 -0
- lang/{image-widget-it_IT.po → image_widget-it_IT.po} +0 -0
- lang/{image-widget-ja.mo → image_widget-ja.mo} +0 -0
- lang/{image-widget-ja.po → image_widget-ja.po} +0 -0
- lang/{image-widget-nl_NL.mo → image_widget-nl_NL.mo} +0 -0
- lang/{image-widget-nl_NL.po → image_widget-nl_NL.po} +0 -0
- lang/{image-widget-pt_BR.mo → image_widget-pt_BR.mo} +0 -0
- lang/{image-widget-pt_BR.po → image_widget-pt_BR.po} +0 -0
- lang/{image-widget-sv_SE.mo → image_widget-sv_SE.mo} +0 -0
- lang/{image-widget-sv_SE.po → image_widget-sv_SE.po} +0 -0
- readme.txt +14 -1
- views/widget-admin.php +4 -4
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.
|
8 |
Author URI: http://tri.be
|
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.0.
|
27 |
|
28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
29 |
|
@@ -47,7 +47,9 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
47 |
|
48 |
add_action( 'plugin_row_meta', array( $this, 'plugin_row_meta' ),10 ,2 );
|
49 |
|
50 |
-
|
|
|
|
|
51 |
add_action( 'network_admin_notices', array( $this, 'post_upgrade_nag') );
|
52 |
}
|
53 |
|
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.6
|
8 |
Author URI: http://tri.be
|
9 |
*/
|
10 |
|
23 |
**/
|
24 |
class Tribe_Image_Widget extends WP_Widget {
|
25 |
|
26 |
+
const VERSION = '4.0.6';
|
27 |
|
28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
29 |
|
47 |
|
48 |
add_action( 'plugin_row_meta', array( $this, 'plugin_row_meta' ),10 ,2 );
|
49 |
|
50 |
+
if ( !defined('I_HAVE_SUPPORTED_THE_IMAGE_WIDGET') )
|
51 |
+
add_action( 'admin_notices', array( $this, 'post_upgrade_nag') );
|
52 |
+
|
53 |
add_action( 'network_admin_notices', array( $this, 'post_upgrade_nag') );
|
54 |
}
|
55 |
|
lang/{image-widget-ar_AR.mo → image_widget-ar_AR.mo}
RENAMED
File without changes
|
lang/{image-widget-ar_AR.po → image_widget-ar_AR.po}
RENAMED
File without changes
|
lang/{image-widget-en_EN.mo → image_widget-en_EN.mo}
RENAMED
File without changes
|
lang/{image-widget-en_EN.po → image_widget-en_EN.po}
RENAMED
File without changes
|
lang/{image-widget-es_ES.mo → image_widget-es_ES.mo}
RENAMED
File without changes
|
lang/{image-widget-es_ES.po → image_widget-es_ES.po}
RENAMED
File without changes
|
lang/{image-widget-it_IT.mo → image_widget-it_IT.mo}
RENAMED
File without changes
|
lang/{image-widget-it_IT.po → image_widget-it_IT.po}
RENAMED
File without changes
|
lang/{image-widget-ja.mo → image_widget-ja.mo}
RENAMED
File without changes
|
lang/{image-widget-ja.po → image_widget-ja.po}
RENAMED
File without changes
|
lang/{image-widget-nl_NL.mo → image_widget-nl_NL.mo}
RENAMED
File without changes
|
lang/{image-widget-nl_NL.po → image_widget-nl_NL.po}
RENAMED
File without changes
|
lang/{image-widget-pt_BR.mo → image_widget-pt_BR.mo}
RENAMED
File without changes
|
lang/{image-widget-pt_BR.po → image_widget-pt_BR.po}
RENAMED
File without changes
|
lang/{image-widget-sv_SE.mo → image_widget-sv_SE.mo}
RENAMED
File without changes
|
lang/{image-widget-sv_SE.po → image_widget-sv_SE.po}
RENAMED
File without changes
|
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, arabic, brazilian portuguese, dutch, italian, japanese, spanish, swedish, widget-only
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 4.0.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -149,8 +149,21 @@ Accepts $instance arguments
|
|
149 |
Filters a list of attributes used in the image link. Similar to 'wp_get_attachment_image_attributes'
|
150 |
Accepts $instance arguments
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
|
|
154 |
= 4.0.5 =
|
155 |
|
156 |
* Added Japanese (and fixed a minor language string bug - thank you @understandard)
|
4 |
Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize, arabic, brazilian portuguese, dutch, italian, japanese, spanish, swedish, widget-only
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 4.0.6
|
8 |
|
9 |
== Description ==
|
10 |
|
149 |
Filters a list of attributes used in the image link. Similar to 'wp_get_attachment_image_attributes'
|
150 |
Accepts $instance arguments
|
151 |
|
152 |
+
= Have You Supported the Image Widget? =
|
153 |
+
|
154 |
+
If so, then THANK YOU! Also, feel free to add this line to your wp-config.php file to prevent the image widget from displaying a message after upgrades.
|
155 |
+
|
156 |
+
define( 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET', true );
|
157 |
+
|
158 |
+
For more info on the philosophy here, check out our blog post: http://tri.be/define-i-have-donated-true/
|
159 |
+
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 4.0.6 =
|
163 |
+
|
164 |
+
* Rename all language files and implement a couple more minor language bug fixes a la @understandard
|
165 |
+
* Added support for the constant 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET' to turn off the message that appears after upgrading. (@crienoloog, i hope this puts a smile on your face.)
|
166 |
+
|
167 |
= 4.0.5 =
|
168 |
|
169 |
* Added Japanese (and fixed a minor language string bug - thank you @understandard)
|
views/widget-admin.php
CHANGED
@@ -46,10 +46,10 @@ if ( !defined('ABSPATH') )
|
|
46 |
<?php
|
47 |
// Note: this is dumb. We shouldn't need to have to do this. There should really be a centralized function in core code for this.
|
48 |
$possible_sizes = apply_filters( 'image_size_names_choose', array(
|
49 |
-
'full' => __('Full Size'),
|
50 |
-
'thumbnail' => __('Thumbnail'),
|
51 |
-
'medium' => __('Medium'),
|
52 |
-
'large' => __('Large'),
|
53 |
) );
|
54 |
$possible_sizes[self::CUSTOM_IMAGE_SIZE_SLUG] = __('Custom', 'image_widget');
|
55 |
|
46 |
<?php
|
47 |
// Note: this is dumb. We shouldn't need to have to do this. There should really be a centralized function in core code for this.
|
48 |
$possible_sizes = apply_filters( 'image_size_names_choose', array(
|
49 |
+
'full' => __('Full Size', 'image_widget'),
|
50 |
+
'thumbnail' => __('Thumbnail', 'image_widget'),
|
51 |
+
'medium' => __('Medium', 'image_widget'),
|
52 |
+
'large' => __('Large', 'image_widget'),
|
53 |
) );
|
54 |
$possible_sizes[self::CUSTOM_IMAGE_SIZE_SLUG] = __('Custom', 'image_widget');
|
55 |
|