這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Log Deprecated Notices

外掛說明

This plugin logs the usage of deprecated files, functions, and function arguments. It identifies where the deprecated functionality is being used and offers the alternative if available.

This is a plugin for developers. WP_DEBUG is not needed, though its general usage is strongly recommended. Deprecated notices normally exposed by WP_DEBUG will be logged instead.

This plugin also logs incorrect function usage, which WordPress started reporting in 3.1.

Please report any bugs to plugins in a support thread.

This is young software. It works, but there’s a lot left on the todo (check out the Other Notes tab). Have an idea? Let me know.

Ideas

These are the various things on the @todo:

  • Plugin identification. Also, an unobstrusive note on plugins page next to said plugins.
  • Perhaps the ability to auto-purge the log.
  • Ability to filter on file or plugin in which the deprecated functionality is used.
  • Offer some kind of better multisite support.

Want to add something here? I’m all ears. plugins at andrewnacin.com or @nacin on Twitter.

I will prioritize these tasks based on feedback, so let me know what you’d like to see.

螢幕擷圖

  • Log screen.

安裝方式

For an automatic installation through WordPress:

  1. Go to the ‘Add New’ plugins screen in your WordPress admin area
  2. Search for ‘Log Deprecated Notices’
  3. Click ‘Install Now’ and activate the plugin
  4. View the log in the ‘Tools’ menu, under ‘Deprecated Calls’

For a manual installation via FTP:

  1. Upload the log-deprecated-notices directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ screen in your WordPress admin area

To upload the plugin through WordPress, instead of FTP:

  1. Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.

This plugin is will remove log entries when it is uninstalled and deleted.

使用者評論

2016 年 9 月 3 日
It's perfect for updating plugins code with the last functions and the best security. All wordpress developers need this golden tool.
2016 年 9 月 3 日
A depreciated call message was really ruining my day. And after scouring the site, I'm surprised how many active WordPress support threads remain open and without resolution that could be easily fixed with this plugin. IMHO, this is now a MUST-USE plugin. Just deactivate it until you need it... and you WILL need it 😉 PS: I've added links to you plugin from the active threads I have been participating in. Thanks for the 5-Star plugin!
閱讀全部 10 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Log Deprecated Notices〉的開發相關工作。

參與者

〈Log Deprecated Notices〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Log Deprecated Notices〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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