From 493793fad520091f75abc6972627e25445e74a8c Mon Sep 17 00:00:00 2001 From: gabriel-glo Date: Mon, 22 Jul 2024 21:03:07 +0200 Subject: [PATCH] PHPCS fixes --- safe-svg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safe-svg.php b/safe-svg.php index 90a859a6..22bd4928 100644 --- a/safe-svg.php +++ b/safe-svg.php @@ -396,7 +396,7 @@ public function fix_admin_preview( $response, $attachment, $meta ) { public function one_pixel_fix( $image, $attachment_id, $size, $icon ) { if ( get_post_mime_type( $attachment_id ) === 'image/svg+xml' ) { $width = $this->set_svg_dimension( 'width', $size, $attachment_id ); - $height = $this->set_svg_dimension( 'height', $size, $attachment_id ); + $height = $this->set_svg_dimension( 'height', $size, $attachment_id ); if ( $height && $width ) { $image[1] = $width;