mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user