Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions includes/Framework/Utilities/AsyncRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ abstract class AsyncRequest {
/** @var array request data */
protected $data = [];

/** @var array query arguments */
protected $query_args;

/** @var string query URL */
protected $query_url;

/** @var array request arguments */
protected $request_args;


/**
* Initiate a new async request
*
Expand Down Expand Up @@ -97,6 +87,8 @@ protected function get_query_args() {

// Check if a child class has defined this property for custom query args
if ( property_exists( $this, 'query_args' ) ) {
// Dynamic property; not defined in the parent class, and not a true lint error
// phpcs:ignore
return $this->query_args;
}

Expand All @@ -117,6 +109,8 @@ protected function get_query_url() {

// Check if a child class has defined this property for a custom URL
if ( property_exists( $this, 'query_url' ) ) {
// Dynamic property; not defined in the parent class, and not a true lint error
// phpcs:ignore
return $this->query_url;
}

Expand All @@ -136,6 +130,8 @@ protected function get_request_args() {

// Check if a child class has defined this property for custom request args
if ( property_exists( $this, 'request_args' ) ) {
// Dynamic property; not defined in the parent class, and not a true lint error
// phpcs:ignore
return $this->request_args;
}

Expand Down