這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Console Log Cloaking” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Console Log Cloaking 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.0

  • Initial release.