Escape vars on Event Importer

This commit is contained in:
Savvas Hadjigeorgiou
2021-11-05 13:49:35 +02:00
parent bdec9848d5
commit 9f56144f50

View File

@@ -475,7 +475,7 @@ if ( class_exists( 'WP_Importer' ) ) {
<?php <?php
foreach( (new SP_Formats)->event as $name => $title ) { foreach( (new SP_Formats)->event as $name => $title ) {
?> ?>
<li><input type="radio" name="sp_format" class="post-format" id="post-format-<?php echo $name; ?>" value="<?php echo $name; ?>" checked="checked"> <label for="post-format-<?php echo $name; ?>" class="post-format-icon post-format-<?php echo $name; ?>"><?php echo $title; ?></label></li> <li><input type="radio" name="sp_format" class="post-format" id="post-format-<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $name ); ?>" checked="checked"> <label for="post-format-<?php echo esc_attr( $name ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $name ); ?>"><?php echo esc_attr( $title ); ?></label></li>
<?php <?php
} }
?> ?>