该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Console Log Cloaking

描述

The Console Log Cloaking plugin allows site administrators to block the display of console messages for users and visitors.

Log messages appear in the browser console (F12) at different stages of the page loading and viewing experience. In many cases, log messages are warning or tracking messages issued by the browser to help users track the origin of display problems, such as long wait time or irregular action outcomes. Those messages can also be a side-effect of careless, console.log-happy developers tracking their own code variables. In almost all cases, it is best to avoid displaying those messages to the site’s visitors, as the content often allows them insights into the inner workings of an application — such as internal IDs, database connection strings, etc. — and can lead to serious security problems.

By default (upon first activation), noone but the main site administrator will see log messages in the console. Administrators can further fine-tune the behavior of the plugin to enable the display of log message to specific user roles (developers, editors, etc.), as well as determine which type of messages should be hidden. By default, all message types are cloaked.

To configure the behavior of the plugin, simply access the Console Log Cloaking menu from the sidebar.

This plugin will be updated to account for changes in future versions of WordPress, if necessary.

If you encounter any problems with the plugin, or need extra related functionality, feel free to contact the authors through the comments or the official plugin page.

Donations

None needed.

屏幕截图

  • An example of the settings.

安装

Upload the zip file to WordPress using the Plugins menu, or upload the entire plugin folder to your server using an FTP client.

常见问题

What happens if I deactivate the plugin?

All logs will be displayed in the console.

评价

此插件暂无评价。

贡献者及开发者

“Console Log Cloaking” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Console Log Cloaking”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial release.