We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166f5b4 commit 8825df7Copy full SHA for 8825df7
tests/modules/images/webp-uploads/load-tests.php
@@ -586,7 +586,9 @@ public function it_should_allow_the_upload_of_a_webp_image_if_at_least_one_edito
586
add_filter(
587
'wp_image_editors',
588
function () {
589
- return array( 'WP_Image_Doesnt_Support_WebP', 'WP_Image_Editor_GD' );
+ // WP core does not choose the WP_Image_Editor instance based on MIME type support,
590
+ // therefore the one that does support WebP needs to be first in this list.
591
+ return array( 'WP_Image_Editor_GD', 'WP_Image_Doesnt_Support_WebP' );
592
}
593
);
594
0 commit comments