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 ); ?> -

設定を保存しました

+

設定を保存しました

+ -
-

-

アクセス権限ページ設定

-
+
+

+

アクセス権限ページ設定

+ - - - - + + + + + + + + + +
+ + + + - - - - + + + + - - - - - - - - - -
- - + + - - + + -
メッセージ +
メッセージ -
ボタンラベル - -
ボタン名 - -
-

- - + cols="60"> +
ボタンラベル + +
ボタン名 + +
+

+ +
-

' . nl2br( $alert_text ) . '

-

'; +

' . nl2br( esc_html( $alert_text ) ) . '

+

'; } }