Skip to content

Commit

Permalink
入力内容によってはCocoon設定が保存できない不具合修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Oct 15, 2018
1 parent 9340157 commit 88168d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/html-forms.php
Expand Up @@ -232,7 +232,7 @@ function generate_error_message_tag($caption){?>
//テキストボックスの生成
if ( !function_exists( 'generate_textbox_tag' ) ):
function generate_textbox_tag($name, $value, $placeholder, $cols = DEFAULT_INPUT_COLS){?>
<input type="text" name="<?php echo $name; ?>" size="<?php echo $cols; ?>" value="<?php echo esc_attr(strip_tags($value)); ?>" placeholder="<?php echo esc_attr($placeholder); ?>">
<input type="text" name="<?php echo $name; ?>" size="<?php echo $cols; ?>" value="<?php echo esc_attr(stripslashes_deep(strip_tags($value))); ?>" placeholder="<?php echo esc_attr($placeholder); ?>">
<?php
}
endif;
Expand Down Expand Up @@ -1074,4 +1074,4 @@ function generate_author_box_tag($label, $is_image_circle = 0){
function get_message_box_tag($message, $classes){
return '<div class="'.$classes.'">'.$message.'</div>';
}
endif;
endif;

0 comments on commit 88168d6

Please sign in to comment.