Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix casting mime transforms to array
  • Loading branch information
jjgrainger committed Jun 22, 2022
commit 5b99cf163398a040524c163f52cfb65d8b6076d7
2 changes: 1 addition & 1 deletion modules/images/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function webp_uploads_get_upload_image_mime_transforms() {
*
* @param array $default_transforms A map with the valid mime transforms.
*/
$transforms = (array) apply_filters( 'webp_uploads_upload_image_mime_transforms', $default_transforms );
$transforms = apply_filters( 'webp_uploads_upload_image_mime_transforms', $default_transforms );

// Return the default mime transforms if a non-array result is returned from the filter.
if ( ! is_array( $transforms ) ) {
Expand Down