Skip to content

Commit

Permalink
change back to un-prefiltered event
Browse files Browse the repository at this point in the history
forgot that we still need to prevent WP scaling on enable-media-replace uploads
  • Loading branch information
jdub233 committed Mar 4, 2024
1 parent 01dd377 commit cb05137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function s3_multisite_upload_dir( $upload ) {
// Conditionally adds a filter only during the upload process, this filter adds a second filter that removes all the image sizes.
// It also adds a filter to preemptively add the sizes to the attachment metadata, otherwise the first filter would prevent the sizes from being added.
add_filter(
'wp_handle_upload_prefilter',
'wp_handle_upload',
function( $file ) {
// This filters the image sizes that are generated during the upload process, removing all of them by returning an empty array.
add_filter(
Expand Down

0 comments on commit cb05137

Please sign in to comment.