﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22438	wp_generate_attachment_metadata() should not call WP_Image_Editor if there's nothing to resize	mdawaffe	nacin	"{{{wp_generate_attachment_metadata()}}} calls {{{WP_Image_Editor::multi_resize()}}} to create the intermediate sizes of the image.

If there are no sizes to create, {{{WP_Image_Editor::get_instance()}}} should not be called.  It will not be used for anything and is a waste of resources.

If it is called, and the image is very large, a needless Out of Memory Fatal Error can result.

Patch attached."	defect (bug)	closed	normal	3.5	Media	3.5	normal	fixed	has-patch	
