Permalink
Browse files

Fix session locking on async requests

  • Loading branch information...
A5hleyRich committed Sep 13, 2016
1 parent ef78a1b commit fbbc56f2480910d7959972ec9ec0819a13c6150a
Showing with 3 additions and 0 deletions.
  1. +3 −0 classes/wp-async-request.php
@@ -141,6 +141,9 @@ protected function get_post_args() {
* Check for correct nonce and pass to handler.
*/
public function maybe_handle() {
+ // Don't lock up other requests while processing
+ session_write_close();
+
check_ajax_referer( $this->identifier, 'nonce' );
$this->handle();

0 comments on commit fbbc56f

Please sign in to comment.