adding discount to premium page

This commit is contained in:
Amine Ben hammou
2018-10-15 14:51:32 +02:00
parent 0639b1ad1f
commit ce6711d69e
6 changed files with 38 additions and 5 deletions

View File

@@ -3,7 +3,6 @@
namespace MailPoet\Util\Notices;
use MailPoet\Util\Helpers;
use MailPoet\WP\Notice as WPNotice;
class PHPVersionWarnings {
@@ -27,7 +26,7 @@ class PHPVersionWarnings {
$error = Helpers::replaceLinkTags($error_string, 'https://beta.docs.mailpoet.com/article/251-upgrading-the-websites-php-version', array('target' => '_blank'));
$extra_classes = 'mailpoet-dismissible-notice is-dismissible';
return WPNotice::displayError($error, $extra_classes, self::OPTION_NAME);
return \MailPoet\WP\Notice::displayError($error, $extra_classes, self::OPTION_NAME);
}
function disable() {

View File

@@ -36,7 +36,6 @@ class PermanentNotices {
}
function ajaxDismissNoticeHandler() {
error_log('YOOOOOOOOOOOOOOOOO POST YES!');
if(!isset($_POST['type'])) return;
switch($_POST['type']) {
case (PHPVersionWarnings::OPTION_NAME):