WP-DBManager升级

在今天升级WP-DBManager的时候,出现 Your backup folder MIGHT be visible to the public问题,

附加了一条提示

To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to wp-content/backup-db

这个提示大意是:

您的备份文件夹可能会暴露给访问者

要更正此问题,把.htaccess文件从wp-content/plugins/wp-dbmanager 移动到  wp-content/backup-db

这个文件时为了安全而设,所以,我照提示做了。

把wp-dbmanager 文件夹里面的.htaccess按要求复制完成。

内容是:

<Files ~ ".*\..*">

order allow,deny

deny from all

</Files>

在完成之后,我发现,这个红色的提示还是出现在头顶,无论在哪个页面。

解决方法:

在wp-dbmanager.php中搜索出

add_action('admin_notices', 'dbmanager_admin_notices');

把这句删除,在335行,红色提示就会消失。



版权所有: Everpg 言
本文链接: http://www.everpg.com/html/y2009/752_wp-dbmanager-emerging-your-backup-folder-might-be-visible-to-the-public-to-remind-the-solution.html
站长声明: 除特别标注, 本站所有文章均为原创, 互联分享, 尊重版权, 转载请注明.