Replace settings outputs with suitable escape functions

This commit is contained in:
Brian Miyaji
2021-11-06 20:04:07 +09:00
parent fa8e3fdd73
commit bb597b2658
10 changed files with 18 additions and 18 deletions

View File

@@ -554,7 +554,7 @@ class SP_AJAX {
<option value="default">Default</option>
<option value="all">All</option>
<?php foreach ( SP()->formats->event as $key => $format ): ?>
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_attr( $format ); ?></option>
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $format ); ?></option>
<?php endforeach; ?>
</select>
</label>
@@ -761,7 +761,7 @@ class SP_AJAX {
<option value="default">Default</option>
<option value="all">All</option>
<?php foreach ( SP()->formats->event as $key => $format ): ?>
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_attr( $format ); ?></option>
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $format ); ?></option>
<?php endforeach; ?>
</select>
</label>