This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config;
if (!defined('ABSPATH')) exit;
use MailPoet\WP\Functions as WPFunctions;
class PluginActivatedHook {
private $deferredAdminNotices;
public function __construct(
DeferredAdminNotices $deferredAdminNotices
) {
$this->deferredAdminNotices = $deferredAdminNotices;
}
public function action($plugin, $networkWide) {
if ($plugin === WPFunctions::get()->pluginBasename(Env::$file) && $networkWide) {
$this->deferredAdminNotices->addNetworkAdminNotice(__("We noticed that you're using an unsupported environment. While MailPoet might work within a MultiSite environment, we dont support it.", 'mailpoet'));
}
}
}