From c2f115df0b998bced2da874f5d30a0aadbfa7a82 Mon Sep 17 00:00:00 2001 From: Dylan Kuhn Date: Fri, 27 Jan 2017 13:09:03 -0800 Subject: [PATCH] Return unauthorized status code when key import fails --- core/web-api-handling.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/web-api-handling.php b/core/web-api-handling.php index 8746af7..f75cd5a 100644 --- a/core/web-api-handling.php +++ b/core/web-api-handling.php @@ -77,8 +77,6 @@ public static function receive_key() { wp_die(); } - self::close_connection(); - $key = sanitize_text_field( $_POST['key'] ); $importer = new Prompt_Key_Importer( $key, Prompt_Core::$options, new Prompt_Api_Client( array(), $key ) );