Unify list vs segment naming with a rest of codebase
[MAILPOET-3418]
This commit is contained in:
committed by
Veljko V
parent
3dc5c5ce80
commit
3d2c62fc16
@@ -6,8 +6,8 @@ use MailPoet\Cron\Workers\SendingQueue\SendingQueue;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoet\WP\Notice;
|
||||
|
||||
class EmailWithInvalidListNotice {
|
||||
const OPTION_NAME = SendingQueue::EMAIL_WITH_INVALID_LIST_OPTION;
|
||||
class EmailWithInvalidSegmentNotice {
|
||||
const OPTION_NAME = SendingQueue::EMAIL_WITH_INVALID_SEGMENT_OPTION;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
@@ -35,7 +35,7 @@ class PermanentNotices {
|
||||
/** @var DeprecatedShortcodeNotice */
|
||||
private $deprecatedShortcodeNotice;
|
||||
|
||||
/** @var EmailWithInvalidListNotice */
|
||||
/** @var EmailWithInvalidSegmentNotice */
|
||||
private $emailWithInvalidListNotice;
|
||||
|
||||
public function __construct(WPFunctions $wp) {
|
||||
@@ -48,7 +48,7 @@ class PermanentNotices {
|
||||
$this->blackFridayNotice = new BlackFridayNotice();
|
||||
$this->headersAlreadySentNotice = new HeadersAlreadySentNotice(SettingsController::getInstance(), $wp);
|
||||
$this->deprecatedShortcodeNotice = new DeprecatedShortcodeNotice();
|
||||
$this->emailWithInvalidListNotice = new EmailWithInvalidListNotice($wp);
|
||||
$this->emailWithInvalidListNotice = new EmailWithInvalidSegmentNotice($wp);
|
||||
}
|
||||
|
||||
public function init() {
|
||||
@@ -112,7 +112,7 @@ class PermanentNotices {
|
||||
case (DeprecatedShortcodeNotice::OPTION_NAME):
|
||||
$this->deprecatedShortcodeNotice->disable();
|
||||
break;
|
||||
case (EmailWithInvalidListNotice::OPTION_NAME):
|
||||
case (EmailWithInvalidSegmentNotice::OPTION_NAME):
|
||||
$this->emailWithInvalidListNotice->disable();
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user