Skip to content

Commit 1470a7c

Browse files
fix: restore svg menu icon size and styles
1 parent 1e8110c commit 1470a7c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

includes/front.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ public static function get_svg_icon( $meta ) {
483483
}
484484
}
485485
if ( ! empty( $width ) ) {
486-
$width = sprintf( ' width="%d"', $width );
486+
$width = sprintf( ' width="%d"', esc_attr( $width ) );
487487
}
488488
if ( ! empty( $height ) ) {
489-
$height = sprintf( ' height="%d"', $height );
489+
$height = sprintf( ' height="%d"', esc_attr( $height ) );
490490
}
491491
$image_alt = get_post_meta( $meta['icon'], '_wp_attachment_image_alt', true );
492492
$image_alt = $image_alt ? wp_strip_all_tags( $image_alt ) : '';
@@ -495,9 +495,9 @@ public static function get_svg_icon( $meta ) {
495495
esc_url( wp_get_attachment_url( $meta['icon'] ) ),
496496
esc_attr( $classes ),
497497
esc_attr( $image_alt ),
498-
esc_attr( $width ),
499-
esc_attr( $height ),
500-
esc_attr( $style )
498+
$width,
499+
$height,
500+
$style
501501
);
502502
}
503503

0 commit comments

Comments
 (0)