' .
esc_html__('Please consider disabling the following detected plugins, as they may conflict with LiteSpeed Cache:', 'litespeed-cache') .
'
' .
implode(', ', $active_incompatible_plugins) .
'
' .
'
',
false,
true
);
}
/**
* Prevent multiple incompatible plugin notices, in case an admin (de)activates
* a number of incompatible plugins in succession without dismissing the
* notice(s).
*/
private static function update_messages()
{
$messages = \LiteSpeed\Admin_Display::get_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, array());
if (is_array($messages)) {
foreach ($messages as $index => $message) {
if (strpos($message, self::$_msg_id) !== false) {
unset($messages[$index]);
if (!$messages) {
$messages = -1;
}
\LiteSpeed\Admin_Display::update_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, $messages);
break;
}
}
}
}
}