Skip to content

Commit 164c5f0

Browse files
committed
fix bad continue
1 parent 2ccdd7c commit 164c5f0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

+8
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,13 @@
3131
"post-update-cmd": [
3232
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
3333
]
34+
},
35+
"archive": {
36+
"exclude": [
37+
".git",
38+
".github",
39+
"tests",
40+
"composer.lock"
41+
]
3442
}
3543
}

inc/class-s3-uploads.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function delete_attachment_files( $post_id ) {
138138

139139
$file = \apply_filters( 's3_delete_attachment_file', $file );
140140
if ( empty( $file ) ) {
141-
continue;
141+
return;
142142
}
143143

144144
if ( $deleted[ $file ] ?? false ) {

0 commit comments

Comments
 (0)