Replace with most suitable escape functions

This commit is contained in:
Brian Miyaji
2021-11-06 19:43:54 +09:00
parent c87764cc02
commit ac70c3813f
21 changed files with 44 additions and 44 deletions

View File

@@ -101,7 +101,7 @@ if ( class_exists( 'WP_Importer' ) ) {
<select name="sp_columns[]" data-index="<?php echo array_search( $selected, array_keys( $this->columns ) ); ?>">
<option value="0">&mdash; <?php _e( 'Disable', 'sportspress' ); ?> &mdash;</option>
<?php foreach ( $this->columns as $key => $label ): ?>
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $selected, $key ); ?>><?php echo esc_attr( $label ); ?></option>
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $selected, $key ); ?>><?php echo esc_html( $label ); ?></option>
<?php endforeach; ?>
</select>
<?php