| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | * WP Async Request |
| 4 | 4 | * |
| 5 | 5 | * @package WP-Background-Processing |
| 6 | 6 | */ |
| 7 | + | |
| 7 | 8 | /* |
| 8 | 9 | Library URI: https://github.com/deliciousbrains/wp-background-processing/blob/fbbc56f2480910d7959972ec9ec0819a13c6150a/classes/wp-async-request.php |
| 9 | 10 | Author: Delicious Brains Inc. |
| 10 | 11 | Author URI: https://deliciousbrains.com/ |
| @@ -26,9 +27,8 @@ | ||
| 26 | 27 | * |
| 27 | 28 | * (default value: 'wp') |
| 28 | 29 | * |
| 29 | 30 | * @var string |
| 30 | - * @access protected | |
| 31 | 31 | */ |
| 32 | 32 | protected $prefix = 'wp'; |
| 33 | 33 | |
| 34 | 34 | /** |
| @@ -36,9 +36,8 @@ | ||
| 36 | 36 | * |
| 37 | 37 | * (default value: 'async_request') |
| 38 | 38 | * |
| 39 | 39 | * @var string |
| 40 | - * @access protected | |
| 41 | 40 | */ |
| 42 | 41 | protected $action = 'async_request'; |
| 43 | 42 | |
| 44 | 43 | /** |
| @@ -44,9 +43,8 @@ | ||
| 44 | 43 | /** |
| 45 | 44 | * Identifier |
| 46 | 45 | * |
| 47 | 46 | * @var mixed |
| 48 | - * @access protected | |
| 49 | 47 | */ |
| 50 | 48 | protected $identifier; |
| 51 | 49 | |
| 52 | 50 | /** |
| @@ -54,9 +52,8 @@ | ||
| 54 | 52 | * |
| 55 | 53 | * (default value: array()) |
| 56 | 54 | * |
| 57 | 55 | * @var array |
| 58 | - * @access protected | |
| 59 | 56 | */ |
| 60 | 57 | protected $data = array(); |
| 61 | 58 | |
| 62 | 59 | /** |
| @@ -168,9 +165,9 @@ | ||
| 168 | 165 | * |
| 169 | 166 | * Check for correct nonce and pass to handler. |
| 170 | 167 | */ |
| 171 | 168 | public function maybe_handle() { |
| 172 | - // Don't lock up other requests while processing | |
| 169 | + // Don't lock up other requests while processing. | |
| 173 | 170 | session_write_close(); |
| 174 | 171 | |
| 175 | 172 | check_ajax_referer( $this->identifier, 'nonce' ); |
| 176 | 173 | |