﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
22181,image_make_intermediate_size in wp-includes/media.php always returns FALSE,gandham,markoheijnen,"Found this when one of my theme user running 3.5 reported problem with thumbnails.
http://swiftthemes.com/forums/showthread.php?1958-here-we-go-again-thumbnail-featured-pics-dont-work-in-latest-build-of-wordpress&goto=newpost#post7055

In the following function, if statement is followed by a ;, so this always returns false.

{{{
function image_make_intermediate_size( $file, $width, $height, $crop = false ) {
	if ( $width || $height ) {
		$editor = WP_Image_Editor::get_instance( $file );

		if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) );
			return false;

		$resized_file = $editor-&gt;save();

		if ( ! is_wp_error( $resized_file ) && $resized_file ) {
			unset( $resized_file['path'] );
			return $resized_file;
		}
	}
	return false;
}
}}}
",defect (bug),closed,normal,3.5,Media,3.5,major,fixed,has-patch commit needs-unit-tests,
