Fix session locking on async requests
This commit is contained in:
parent
33048e742c
commit
fa66dfa935
|
@ -141,6 +141,9 @@ if ( ! class_exists( 'WP_Async_Request' ) ) {
|
|||
* 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();
|
||||
|
|
Loading…
Reference in New Issue