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