Remove static call WP function.
[MAILPOET-3031]
This commit is contained in:
@ -70,7 +70,7 @@ class SubscriberSaveController {
|
|||||||
|
|
||||||
public function save(array $data): SubscriberEntity {
|
public function save(array $data): SubscriberEntity {
|
||||||
if (is_array($data) && !empty($data)) {
|
if (is_array($data) && !empty($data)) {
|
||||||
$data = WPFunctions::get()->stripslashesDeep($data);
|
$data = $this->wp->stripslashesDeep($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($data['segments'])) {
|
if (empty($data['segments'])) {
|
||||||
|
Reference in New Issue
Block a user