Skip to content

Commit

Permalink
Return unauthorized status code when key import fails
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhobo committed Jan 27, 2017
1 parent 999081d commit c2f115d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/web-api-handling.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit c2f115d

Please sign in to comment.