diff --git wp-includes/class-wp-image-editor-gd.php wp-includes/class-wp-image-editor-gd.php
index fd4d0a1..b0781b5 100644
|
|
class WP_Image_Editor_GD extends WP_Image_Editor { |
190 | 190 | $resized = $this->_save( $image ); |
191 | 191 | |
192 | 192 | imagedestroy( $image ); |
193 | | unset( $resized['path'] ); |
194 | 193 | |
195 | | if ( ! is_wp_error( $resized ) && $resized ) |
| 194 | if ( ! is_wp_error( $resized ) && $resized ) { |
| 195 | unset( $resized['path'] ); |
196 | 196 | $metadata[$size] = $resized; |
| 197 | } |
197 | 198 | } |
198 | 199 | |
199 | 200 | $this->size = $orig_size; |
diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
index 179cada..21e4e0c 100644
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
268 | 268 | $this->image->clear(); |
269 | 269 | $this->image->destroy(); |
270 | 270 | $this->image = null; |
271 | | unset( $resized['path'] ); |
272 | 271 | |
273 | | if ( ! is_wp_error( $resized ) && $resized ) |
| 272 | if ( ! is_wp_error( $resized ) && $resized ) { |
| 273 | unset( $resized['path'] ); |
274 | 274 | $metadata[$size] = $resized; |
| 275 | } |
275 | 276 | } |
276 | 277 | |
277 | 278 | $this->size = $orig_size; |