Remove old settings files

[MAILPOET-2682]
This commit is contained in:
Amine Ben hammou
2020-04-13 12:13:05 +02:00
committed by Veljko V
parent a37732cfb1
commit c19902c32d
12 changed files with 3 additions and 1700 deletions

View File

@@ -9,7 +9,6 @@ use MailPoet\AdminPages\Pages\Help;
use MailPoet\AdminPages\Pages\MP2Migration;
use MailPoet\AdminPages\Pages\NewsletterEditor;
use MailPoet\AdminPages\Pages\Newsletters;
use MailPoet\AdminPages\Pages\OldSettings;
use MailPoet\AdminPages\Pages\Premium;
use MailPoet\AdminPages\Pages\RevenueTrackingPermission;
use MailPoet\AdminPages\Pages\Segments;
@@ -275,7 +274,7 @@ class Menu {
'mailpoet-settings',
[
$this,
'oldSettings',
'settings',
]
);
@@ -371,7 +370,7 @@ class Menu {
]
);
// Settings page
// Experimental page
$this->wp->addSubmenuPage(
true,
$this->setPageTitle('Experimental Features'),
@@ -380,16 +379,6 @@ class Menu {
'mailpoet-experimental',
[$this, 'experimentalFeatures']
);
// New Settings page
$this->wp->addSubmenuPage(
self::MAIN_PAGE_SLUG,
$this->setPageTitle(__('Settings', 'mailpoet')),
'',
AccessControl::PERMISSION_MANAGE_SETTINGS,
'mailpoet-new-settings',
[$this, 'settings']
);
}
public function disableWPEmojis() {
@@ -421,10 +410,6 @@ class Menu {
$this->container->get(Premium::class)->render();
}
public function oldSettings() {
$this->container->get(OldSettings::class)->render();
}
public function settings() {
$this->container->get(Settings::class)->render();
}