has('_ajax_nonce') || !wp_verify_nonce(sanitize_key($request->get('_ajax_nonce')), Config::withPrefix('nonce'))) { return Response::error('Invalid nonce token')->httpStatus(411); } return true; } }