diff --git a/src/Admin/MetaBox.php b/src/Admin/MetaBox.php index 116117f..dbc9d0d 100644 --- a/src/Admin/MetaBox.php +++ b/src/Admin/MetaBox.php @@ -112,7 +112,7 @@ public function save_meta_box_options(): void { if ( empty( $_POST['gtmkit_option']['page_type'] ) ) { delete_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type' ); } else { - $page_type = sanitize_text_field( $_POST['gtmkit_option']['page_type'] ); + $page_type = sanitize_text_field( wp_unslash( $_POST['gtmkit_option']['page_type'] ) ); update_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type', $page_type ); } }