[WordPress] 外掛分享: Log Deprecated Notices

首頁外掛目錄 › Log Deprecated Notices
1,000+
安裝啟用
★★★★★
5/5 分(10 則評價)
1726 天前
最後更新
問題解決
WordPress 3.0+ v0.4.1 上架:2010-06-26

內容簡介

此外掛會記錄使用到已被棄用的檔案、函式和函式參數。它也能夠辨別被使用到的棄用功能並且會提供可用的替代方法。

這是專為開發人員所設計的外掛程式。雖然 WP_DEBUG 不是必須的,但建議使用以達到更佳效果。透過 WP_DEBUG 通常會提醒的棄用通知會被記錄下來。

此外掛也會記錄不正確的函式使用,這個功能是在 WordPress 3.1 開始使用的。

如發現任何問題,請回報至外掛的支援主題。

這是一個新的軟體,已能正常運作,但還有很多功能需要加強(請參閱其他說明標籤)。如果您有任何建議,請告訴我。

想法

以下是 @todo 列表中的各種事項:

插件識別。此外掛會在插件頁面上提供一個不顯眼的筆記。
自動清除紀錄的能力。
提供以檔案或插件為基礎的篩選能力,以找出將棄用功能用於哪些檔案或插件。
提供更好的多站支援功能。

您有任何其他建議嗎?我很樂意聆聽。請透過 [email protected] 或在 Twitter 上與 @nacin 聯繫。

我會根據回饋的意見來優先處理這些任務,所以請讓我知道您希望看到的內容。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Mastodon