admin-ajax.php imgedit-preview header problem ( v2 / WP3.7 )
-
I use the “Post thumbnail Editor” , but the page for select area for the thumbnail did not show the main image.
There is one year @hugofcampos had found a solution , but the post is closed to replies.
Well, with WP 3.7, I had the same problem, so I found a similar solution ( not the same file, nor function )
Hope that help :
class-wp-image-editor-gd.php line 396
I added
while (@ob_end_clean());
in the stream function.public function stream( $mime_type = null ) { list( $filename, $extension, $mime_type ) = $this->get_output_format( null, $mime_type ); while (@ob_end_clean()); switch ( $mime_type ) { case 'image/png': header( 'Content-Type: image/png' ); return imagepng( $this->image ); case 'image/gif': header( 'Content-Type: image/gif' ); return imagegif( $this->image ); default: header( 'Content-Type: image/jpeg' ); return imagejpeg( $this->image, null, $this->quality ); } }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘admin-ajax.php imgedit-preview header problem ( v2 / WP3.7 )’ is closed to new replies.