FIX: Wrong escape method used

This commit is contained in:
savvasha
2022-08-01 08:48:47 +03:00
parent 4eec1f895a
commit 60fee44ebe

View File

@@ -147,7 +147,7 @@ if ( ! class_exists( 'SportsPress_Widget_Alignment' ) ) :
<select id="align" name="align"> <select id="align" name="align">
<?php <?php
foreach ( $this->options as $value => $label ) { foreach ( $this->options as $value => $label ) {
printf( wp_kses_post( '<option value="%s">%s</option>', $value, $label ) ); printf( '<option value="%s">%s</option>', esc_attr( $value ), esc_html( $label ) );
} }
?> ?>
</select> </select>