Skip to content

Commit

Permalink
eliminate code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Oct 4, 2024
1 parent 57da8e6 commit 898c9eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/WP_Async_Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* @package WP-Background-Processing
*/

/*
Library URI: https://github.com/deliciousbrains/wp-background-processing/blob/fbbc56f2480910d7959972ec9ec0819a13c6150a/classes/wp-async-request.php
Author: Delicious Brains Inc.
Expand All @@ -27,7 +28,6 @@ abstract class WP_Async_Request {
* (default value: 'wp')
*
* @var string
* @access protected
*/
protected $prefix = 'wp';

Expand All @@ -37,15 +37,13 @@ abstract class WP_Async_Request {
* (default value: 'async_request')
*
* @var string
* @access protected
*/
protected $action = 'async_request';

/**
* Identifier
*
* @var mixed
* @access protected
*/
protected $identifier;

Expand All @@ -55,7 +53,6 @@ abstract class WP_Async_Request {
* (default value: array())
*
* @var array
* @access protected
*/
protected $data = array();

Expand Down Expand Up @@ -169,7 +166,7 @@ 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
// Don't lock up other requests while processing.
session_write_close();

check_ajax_referer( $this->identifier, 'nonce' );
Expand Down

0 comments on commit 898c9eb

Please sign in to comment.