Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | protected static function notifyRequiredPluginIsMissing($pluginName) |
||
50 | { |
||
51 | $manager = AdminNoticeManager::getInstance(); |
||
52 | |||
53 | $pluginUrl = esc_url(admin_url('plugins.php')); |
||
54 | $message = ["${pluginName} plugin not activated. Make sure you activate the plugin on the <a href=\"${pluginUrl}\">plugin page</a>."]; |
||
55 | $options = [ |
||
56 | 'type' => 'error', |
||
57 | 'title' => 'Flynt is missing a required plugin', |
||
58 | 'dismissible' => false, |
||
59 | ]; |
||
60 | |||
61 | $manager->addNotice($message, $options); |
||
62 | } |
||
64 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.