diff --git src/wp-includes/media.php src/wp-includes/media.php
index f6c5f0f..e7dca8d 100644
|
|
function wp_prepare_attachment_for_js( $attachment ) { |
3143 | 3143 | |
3144 | 3144 | /** This filter is documented in wp-includes/media.php */ |
3145 | 3145 | if ( $downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size ) ) { |
3146 | | if ( ! $downsize[3] ) |
| 3146 | if ( empty( $downsize[3] ) ) { |
3147 | 3147 | continue; |
| 3148 | } |
| 3149 | |
3148 | 3150 | $sizes[ $size ] = array( |
3149 | 3151 | 'height' => $downsize[2], |
3150 | 3152 | 'width' => $downsize[1], |