Skip to content

Commit

Permalink
Fixed code still in debugging state
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 committed Nov 9, 2023
1 parent 6aca18f commit 8700d8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ public function delete_backup() {
* Then we use the backup file to create temporary files.
*/

/**w
/**
* Create a temporary copy of a size file.
*
* @since 1.9
Expand Down Expand Up @@ -1792,8 +1792,9 @@ public function update_size_optimization_data( $response, $size, $level ) {
*/
$data = (array) apply_filters( "imagify{$_unauthorized}_file_optimization_data", $data, $response, $size, $level, $this->get_data() );

$size = str_replace( '@imagify-webp', '', $size );

if ( property_exists( $response, 'message' ) ) {
$size = str_replace( '@imagify-webp', '', $size );
}
// Store.
$this->get_data()->update_size_optimization_data( $size, $data );

Expand Down

0 comments on commit 8700d8f

Please sign in to comment.