From 1470a7cdc0a855fa356ccfa563a23175feac4135 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Tue, 14 Apr 2026 12:17:13 +0530 Subject: [PATCH] fix: restore svg menu icon size and styles --- includes/front.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/front.php b/includes/front.php index cb42e40..4dcb419 100644 --- a/includes/front.php +++ b/includes/front.php @@ -483,10 +483,10 @@ public static function get_svg_icon( $meta ) { } } if ( ! empty( $width ) ) { - $width = sprintf( ' width="%d"', $width ); + $width = sprintf( ' width="%d"', esc_attr( $width ) ); } if ( ! empty( $height ) ) { - $height = sprintf( ' height="%d"', $height ); + $height = sprintf( ' height="%d"', esc_attr( $height ) ); } $image_alt = get_post_meta( $meta['icon'], '_wp_attachment_image_alt', true ); $image_alt = $image_alt ? wp_strip_all_tags( $image_alt ) : ''; @@ -495,9 +495,9 @@ public static function get_svg_icon( $meta ) { esc_url( wp_get_attachment_url( $meta['icon'] ) ), esc_attr( $classes ), esc_attr( $image_alt ), - esc_attr( $width ), - esc_attr( $height ), - esc_attr( $style ) + $width, + $height, + $style ); }