Remove the WC customizer feature flag [MAILPOET-2285]
This commit is contained in:
@@ -6,7 +6,6 @@ use MailPoet\AdminPages\PageRenderer;
|
||||
use MailPoet\Config\Installer;
|
||||
use MailPoet\Config\ServicesChecker;
|
||||
use MailPoet\Cron\CronTrigger;
|
||||
use MailPoet\Features\FeaturesController;
|
||||
use MailPoet\Models\Segment;
|
||||
use MailPoet\Models\Subscriber;
|
||||
use MailPoet\Services\Bridge;
|
||||
@@ -39,9 +38,6 @@ class Settings {
|
||||
/** @var Captcha */
|
||||
private $captcha;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
|
||||
/** @var Installation */
|
||||
private $installation;
|
||||
|
||||
@@ -52,8 +48,7 @@ class Settings {
|
||||
WPFunctions $wp,
|
||||
ServicesChecker $services_checker,
|
||||
Installation $installation,
|
||||
Captcha $captcha,
|
||||
FeaturesController $features_controller
|
||||
Captcha $captcha
|
||||
) {
|
||||
$this->page_renderer = $page_renderer;
|
||||
$this->settings = $settings;
|
||||
@@ -62,7 +57,6 @@ class Settings {
|
||||
$this->services_checker = $services_checker;
|
||||
$this->installation = $installation;
|
||||
$this->captcha = $captcha;
|
||||
$this->features_controller = $features_controller;
|
||||
}
|
||||
|
||||
function render() {
|
||||
@@ -94,9 +88,6 @@ class Settings {
|
||||
'smtp' => Hosts::getSMTPHosts(),
|
||||
],
|
||||
'built_in_captcha_supported' => $this->captcha->isSupported(),
|
||||
'display_woocommerce_editor' => $this->features_controller->isSupported(
|
||||
FeaturesController::WC_TRANSACTIONAL_EMAILS_CUSTOMIZER
|
||||
),
|
||||
];
|
||||
|
||||
$data['is_new_user'] = $this->installation->isNewInstallation();
|
||||
|
Reference in New Issue
Block a user