diff --git a/convert-protection-text.php b/convert-protection-text.php index 053eff7..5044d3c 100644 --- a/convert-protection-text.php +++ b/convert-protection-text.php @@ -30,19 +30,20 @@ class CNV_Protection_Text { } public function show_text_option_page() { - //$_POST['_cnv_protect_options'])があったら保存 - if ( isset( $_POST['_cnv_protect_options'] ) ) { + $update_option = filter_input( INPUT_POST, '_cnv_protect_options', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY ); + if ( ! empty( $update_option ) ) { check_admin_referer( 'cnv_options' ); - $opt = $_POST['_cnv_protect_options']; - update_option( '_cnv_protect_options', $opt ); + update_option( '_cnv_protect_options', $update_option ); ?> -
設定を保存しました
設定を保存しました
+ -' . nl2br( esc_html( $alert_text ) ) . '
+'; } }