Simple Image Widget - Version 4.2.1

Version Description

  • Fixed a PHP 5.2 incompatibility that prevented the correct image from showing on the front-end.
  • Fixed a debug notice when searching for attachments in the new find posts modal.
Download this release

Release Info

Developer bradyvercher
Plugin Icon 128x128 Simple Image Widget
Version 4.2.1
Comparing to
See all releases

Code changes from version 4.2.0 to 4.2.1

includes/class-simple-image-widget-plugin.php CHANGED
@@ -297,6 +297,7 @@ class Simple_Image_Widget_Plugin {
297
  foreach ( $posts as $post ) {
298
  $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
299
  $post_link = 'attachment' == get_post_type( $post->ID ) ? wp_get_attachment_url( $post->ID ) : get_permalink( $post->ID );
 
300
 
301
  switch ( $post->post_status ) {
302
  case 'publish' :
297
  foreach ( $posts as $post ) {
298
  $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
299
  $post_link = 'attachment' == get_post_type( $post->ID ) ? wp_get_attachment_url( $post->ID ) : get_permalink( $post->ID );
300
+ $status = '';
301
 
302
  switch ( $post->post_status ) {
303
  case 'publish' :
includes/class-simple-image-widget.php CHANGED
@@ -557,7 +557,10 @@ class Simple_Image_Widget extends WP_Widget {
557
  * @return string
558
  */
559
  protected function siw_get_cache_key() {
560
- $data = array_reduce( func_get_args(), 'array_merge', array() );
 
 
 
561
  ksort( $data );
562
  return 'siw_' . md5( json_encode( $data ) );
563
  }
557
  * @return string
558
  */
559
  protected function siw_get_cache_key() {
560
+ $data = array();
561
+ foreach ( func_get_args() as $arg ) {
562
+ $data = array_merge( $data, (array) $arg );
563
+ }
564
  ksort( $data );
565
  return 'siw_' . md5( json_encode( $data ) );
566
  }
languages/simple-image-widget.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Simple Image Widget 4.2.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "http://wordpress.org/support/plugin/simple-image-widget\n"
8
  "POT-Creation-Date: 2014-06-13 21:26:00+00:00\n"
@@ -125,32 +125,32 @@ msgstr ""
125
  msgid "(no title)"
126
  msgstr ""
127
 
128
- #: includes/class-simple-image-widget-plugin.php:304
129
  msgid "Published"
130
  msgstr ""
131
 
132
- #: includes/class-simple-image-widget-plugin.php:307
133
  msgid "Scheduled"
134
  msgstr ""
135
 
136
- #: includes/class-simple-image-widget-plugin.php:310
137
  msgid "Pending Review"
138
  msgstr ""
139
 
140
- #: includes/class-simple-image-widget-plugin.php:313
141
  msgid "Draft"
142
  msgstr ""
143
 
144
- #: includes/class-simple-image-widget-plugin.php:321
145
  #. translators: date format in table columns, see http:php.net/date
146
  msgid "Y/m/d"
147
  msgstr ""
148
 
149
- #: includes/class-simple-image-widget-plugin.php:348
150
  msgid "Find Post"
151
  msgstr ""
152
 
153
- #: includes/class-simple-image-widget-plugin.php:356
154
  msgid "Search"
155
  msgstr ""
156
 
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Simple Image Widget 4.2.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "http://wordpress.org/support/plugin/simple-image-widget\n"
8
  "POT-Creation-Date: 2014-06-13 21:26:00+00:00\n"
125
  msgid "(no title)"
126
  msgstr ""
127
 
128
+ #: includes/class-simple-image-widget-plugin.php:305
129
  msgid "Published"
130
  msgstr ""
131
 
132
+ #: includes/class-simple-image-widget-plugin.php:308
133
  msgid "Scheduled"
134
  msgstr ""
135
 
136
+ #: includes/class-simple-image-widget-plugin.php:311
137
  msgid "Pending Review"
138
  msgstr ""
139
 
140
+ #: includes/class-simple-image-widget-plugin.php:314
141
  msgid "Draft"
142
  msgstr ""
143
 
144
+ #: includes/class-simple-image-widget-plugin.php:322
145
  #. translators: date format in table columns, see http:php.net/date
146
  msgid "Y/m/d"
147
  msgstr ""
148
 
149
+ #: includes/class-simple-image-widget-plugin.php:349
150
  msgid "Find Post"
151
  msgstr ""
152
 
153
+ #: includes/class-simple-image-widget-plugin.php:357
154
  msgid "Search"
155
  msgstr ""
156
 
readme.txt CHANGED
@@ -78,6 +78,10 @@ The widget uses the core function `wp_get_attachment_image()` to display the ima
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 4.2.0 =
82
  * Added functionality to search for posts to link images to.
83
  * Added Japanese translation.
78
 
79
  == Changelog ==
80
 
81
+ = 4.2.1 =
82
+ * Fixed a PHP 5.2 incompatibility that prevented the correct image from showing on the front-end.
83
+ * Fixed a debug notice when searching for attachments in the new find posts modal.
84
+
85
  = 4.2.0 =
86
  * Added functionality to search for posts to link images to.
87
  * Added Japanese translation.
simple-image-widget.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: Simple Image Widget
12
  * Plugin URI: https://wordpress.org/extend/plugins/simple-image-widget/
13
  * Description: A simple image widget utilizing the new WordPress media manager.
14
- * Version: 4.2.0
15
  * Author: Blazer Six
16
  * Author URI: http://www.blazersix.com/
17
  * License: GPL-2.0+
11
  * Plugin Name: Simple Image Widget
12
  * Plugin URI: https://wordpress.org/extend/plugins/simple-image-widget/
13
  * Description: A simple image widget utilizing the new WordPress media manager.
14
+ * Version: 4.2.1
15
  * Author: Blazer Six
16
  * Author URI: http://www.blazersix.com/
17
  * License: GPL-2.0+