Skip to content

Commit

Permalink
PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-glo committed Jul 22, 2024
1 parent 4525a81 commit 493793f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 493793f

Please sign in to comment.