25 lines
1.1 KiB
PHP
25 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace WebPExpress;
|
|
|
|
$msgId = '0.25.10/failed-renaming-config-file';
|
|
|
|
DismissableGlobalMessages::printDismissableMessage(
|
|
'warning',
|
|
'WebP Express failed renaming the configuration files to something secret. ' .
|
|
'This was attempted in order to protect its contents from prying eyes on servers that does not respect .htaccess files (such as Nginx). ' .
|
|
'If you have entered sensitive information in WebP Express settings (I can only think of Ewww API key), you should remove it. You can do simply by changing the WebP Express settings.' .
|
|
(PlatformInfo::isNginx() ? 'Especially, as it appears you are in fact on Nginx. ' : '') .
|
|
(PlatformInfo::isNginx() ? '' : 'You are by the way not on Nginx ') .
|
|
(PlatformInfo::isLiteSpeed() ? '(you are on LiteSpeed). ' : '') .
|
|
(PlatformInfo::isApache() ? '(you are on Apache). ' : '') .
|
|
(PlatformInfo::isMicrosoftIis() ? '(you are on Microsoft IIS). ' : '') .
|
|
'The files in question are config.json and wod-options.json in wp-content/webp-express/config'
|
|
,
|
|
|
|
$msgId,
|
|
[
|
|
['text' => 'Dismiss'],
|
|
]
|
|
);
|