Skip to content

Commit

Permalink
Removal of non requried conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mitogh committed Mar 30, 2022
1 parent e202548 commit 188c7df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/images/webp-uploads/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,6 @@ function webp_uploads_update_rest_attachment( WP_REST_Response $response, WP_Pos
* @return array The updated metadata for the attachment to be stored in the meta table.
*/
function webp_uploads_update_attachment_metadata( $data, $attachment_id ) {

if ( ! doing_action( 'wp_ajax_image-editor' ) ) {
return;
}

$trace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 10 );

foreach ( $trace as $element ) {
Expand Down

0 comments on commit 188c7df

Please sign in to comment.