File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments