diff --git a/wp-includes/media.php b/wp-includes/media.php index ad733013af..a3a8088a15 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -3159,8 +3159,10 @@ function wp_prepare_attachment_for_js( $attachment ) { /** This filter is documented in wp-includes/media.php */ if ( $downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size ) ) { - if ( ! $downsize[3] ) + if ( empty( $downsize[3] ) ) { continue; + } + $sizes[ $size ] = array( 'height' => $downsize[2], 'width' => $downsize[1], diff --git a/wp-includes/version.php b/wp-includes/version.php index 6a4a87d7e9..55fc21ff35 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39106'; +$wp_version = '4.7-beta1-39107'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.