Wrapped the class name in esc_attr

This commit is contained in:
Marcin Bot 2017-10-10 17:49:04 +01:00
parent eaf8a09e82
commit 01578d55c9
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ class WC_Admin_Setup_Wizard {
placeholder="<?php echo esc_attr( $setting['default_value'] ); ?>"
id="<?php echo esc_attr( $method_setting_id ); ?>"
name="<?php echo esc_attr( $method_setting_id ); ?>"
class="<?php echo $setting['required'] ? 'shipping-method-required-field' : ''; ?>"
class="<?php echo esc_attr( $setting['required'] ? 'shipping-method-required-field' : '' ); ?>"
<?php echo ( $method_id === $selected && $setting['required'] ) ? 'required' : ''; ?>
/>
<p class="description">