From 09a75e14bdb4a49fbedbfe5e9bd989e4b988249a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lys=C3=BD?= Date: Fri, 26 Mar 2021 10:51:52 +0100 Subject: [PATCH] Remove static call WP function. [MAILPOET-3031] --- lib/Subscribers/SubscriberSaveController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Subscribers/SubscriberSaveController.php b/lib/Subscribers/SubscriberSaveController.php index 014bf441df..aa5cc15bce 100644 --- a/lib/Subscribers/SubscriberSaveController.php +++ b/lib/Subscribers/SubscriberSaveController.php @@ -70,7 +70,7 @@ class SubscriberSaveController { public function save(array $data): SubscriberEntity { if (is_array($data) && !empty($data)) { - $data = WPFunctions::get()->stripslashesDeep($data); + $data = $this->wp->stripslashesDeep($data); } if (empty($data['segments'])) {