summaryrefslogtreecommitdiff
path: root/Postman/PostmanPluginFeedback.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/PostmanPluginFeedback.php')
-rw-r--r--Postman/PostmanPluginFeedback.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Postman/PostmanPluginFeedback.php b/Postman/PostmanPluginFeedback.php
index 562d8a5..de7d73f 100644
--- a/Postman/PostmanPluginFeedback.php
+++ b/Postman/PostmanPluginFeedback.php
@@ -32,7 +32,7 @@ class PostmanPluginFeedback {
if ( isset( $_POST['support'] ) ) {
$payload['support']['email'] = sanitize_email( $_POST['support']['email'] );
- $payload['support']['title'] = sanitize_email( $_POST['support']['title'] );
+ $payload['support']['title'] = sanitize_text_field( $_POST['support']['title'] );
$payload['support']['text'] = sanitize_textarea_field( $_POST['support']['text'] );
}
@@ -40,7 +40,7 @@ class PostmanPluginFeedback {
'body' => $payload,
);
$result = wp_remote_post( 'https://postmansmtp.com/feedback', $args );
- die();
+ die( 'success' );
}
function admin_head() {