- intermediate results with sanitizing form handlers;

This commit is contained in:
Nikita Sinelnikov
2021-06-29 02:51:54 +03:00
parent 23d1b982a4
commit 07e664be80
63 changed files with 4337 additions and 2812 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
* Set value on form submission
*/
if ( isset( $_REQUEST[ $id ] ) ) {
$checked = $_REQUEST[ $id ];
$checked = (bool) $_REQUEST[ $id ];
}
$class = $checked ? 'um-icon-android-checkbox-outline' : 'um-icon-android-checkbox-outline-blank';
@@ -60,7 +60,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
<div class="um-field um-field-c">
<div class="um-field-area">
<label class="um-field-checkbox <?php echo ( $checked ) ? 'active' : '' ?>">
<label class="um-field-checkbox<?php echo $checked ? ' active' : '' ?>">
<input type="checkbox" name="<?php echo esc_attr( $id ); ?>" value="1" <?php checked( $checked ) ?> />
<span class="um-field-checkbox-state"><i class="<?php echo esc_attr( $class ) ?>"></i></span>
<span class="um-field-checkbox-option"> <?php echo esc_html( $title ); ?></span>
@@ -4761,4 +4761,4 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
return $html_atts;
}
}
}
}