← All changes
|
core/base/background-process/wp-async-request.php
+3
-2
4.2.0-dev2
→
3.27.4
View file →
| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | exit; |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | - * Link https://github.com/A5hleyRich/wp-background-processing GPL v2.0 | |
| 9 | + * https://github.com/A5hleyRich/wp-background-processing GPL v2.0 | |
| 10 | 10 | * |
| 11 | 11 | * WP Async Request |
| 12 | 12 | * |
| 13 | 13 | * @package WP-Background-Processing |
| @@ -132,9 +132,9 @@ | ||
| 132 | 132 | return $this->post_args; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | return [ |
| 136 | - 'timeout' => 5, | |
| 136 | + 'timeout' => 0.01, | |
| 137 | 137 | 'blocking' => false, |
| 138 | 138 | 'body' => $this->data, |
| 139 | 139 | 'cookies' => $_COOKIE, |
| 140 | 140 | /** This filter is documented in wp-includes/class-wp-http-streams.php */ |
| @@ -164,5 +164,6 @@ | ||
| 164 | 164 | * Override this method to perform any actions required |
| 165 | 165 | * during the async request. |
| 166 | 166 | */ |
| 167 | 167 | abstract protected function handle(); |
| 168 | + | |
| 168 | 169 | } |