Skip to content

Commit f352269

Browse files
committed
Use correct number of arguments in filter callback
The `webp_uploads_update_image_onchange` function takes 5 arguments. See #622
1 parent af20ea6 commit f352269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/images/webp-uploads/image-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function ( $metadata, $post_meta_id ) use ( $post_id, $file_path, $mime_type, $e
221221

222222
return $override;
223223
}
224-
add_filter( 'wp_save_image_editor_file', 'webp_uploads_update_image_onchange', 10, 7 );
224+
add_filter( 'wp_save_image_editor_file', 'webp_uploads_update_image_onchange', 10, 5 );
225225

226226
/**
227227
* Inspect if the current call to `wp_update_attachment_metadata()` was done from within the context

0 commit comments

Comments
 (0)