Skip to content

Commit

Permalink
Fixed the tmp file
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 committed Nov 10, 2023
1 parent 8700d8f commit 7d2b7f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ public function optimize_size( $size, $optimization_level = null ) {

if ( property_exists( $response, 'message' ) ) {
$path_is_temp = false;
if($path !== $sizes[ $thumb_size ]['path']) {
$this->filesystem->delete($path);
}
$path = $sizes[ $thumb_size ]['path'];
}
}
}
Expand Down

0 comments on commit 7d2b7f2

Please sign in to comment.