Fix a duplicate constructor after merging encapsulated WP functions
This commit is contained in:
@ -38,16 +38,13 @@ class Newsletters extends APIEndpoint {
|
|||||||
);
|
);
|
||||||
private $wp;
|
private $wp;
|
||||||
|
|
||||||
function __construct() {
|
|
||||||
$this->wp = new WPFunctions;
|
|
||||||
}
|
|
||||||
|
|
||||||
function __construct(
|
function __construct(
|
||||||
Listing\BulkActionController $bulk_action,
|
Listing\BulkActionController $bulk_action,
|
||||||
Listing\Handler $listing_handler
|
Listing\Handler $listing_handler
|
||||||
) {
|
) {
|
||||||
$this->bulk_action = $bulk_action;
|
$this->bulk_action = $bulk_action;
|
||||||
$this->listing_handler = $listing_handler;
|
$this->listing_handler = $listing_handler;
|
||||||
|
$this->wp = new WPFunctions;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get($data = array()) {
|
function get($data = array()) {
|
||||||
|
Reference in New Issue
Block a user