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.
2 parents f70b0a2 + cd8c7d1 commit 58447e0Copy full SHA for 58447e0
plugins/webp-uploads/helper.php
@@ -393,7 +393,7 @@ function webp_uploads_sanitize_image_format( string $image_format ): string {
393
* @return bool True if the option is enabled, false otherwise.
394
*/
395
function webp_uploads_is_picture_element_enabled(): bool {
396
- return (bool) get_option( 'webp_uploads_use_picture_element', false );
+ return webp_uploads_is_jpeg_fallback_enabled() && (bool) get_option( 'webp_uploads_use_picture_element', false );
397
}
398
399
/**
0 commit comments