/**
* Filters the WP_Image_Editor instance for the image to be streamed to the browser.
*
* @since 3.5.0
*
* @paramWP_Image_Editor$image The image editor instance.
* @paramint$attachment_id The attachment post ID.
*/$image=apply_filters('image_editor_save_pre',$image,$attachment_id);while(@ob_end_clean());//この一行を追加if(is_wp_error($image->stream($mime_type))){returnfalse;}