Fix setting default quality in WP_Image_Editor.

props markoheijnen.
fixes #29856 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@29834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2014-10-04 13:11:38 +00:00
parent 07a38ff81a
commit 1a7c4efa13
7 changed files with 32 additions and 10 deletions
+2
View File
@@ -224,6 +224,8 @@ class Tests_Image_Functions extends WP_UnitTestCase {
// Save the image as each file extension, check the mime type
$img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' );
$this->assertNotInstanceOf( 'WP_Error', $img );
$temp = get_temp_dir();
foreach ( $mime_types as $ext => $mime_type ) {
$file = wp_unique_filename( $temp, uniqid() . ".$ext" );