Title: Log Deprecated Notices
Author: Andrew Nacin
Published: <strong>2010 年 6 月 27 日</strong>
Last modified: 2021 年 6 月 25 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/log-deprecated-notices.svg)

# Log Deprecated Notices

 作者：[Andrew Nacin](https://profiles.wordpress.org/nacin/)

[下载](https://downloads.wordpress.org/plugin/log-deprecated-notices.0.4.1.zip)

 * [详情](https://cn.wordpress.org/plugins/log-deprecated-notices/#description)
 * [评价](https://cn.wordpress.org/plugins/log-deprecated-notices/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/log-deprecated-notices/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/log-deprecated-notices/#developers)

 [支持](https://wordpress.org/support/plugin/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](https://wordpress.org/support/plugin/log-deprecated-notices).

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](http://andrewnacin.com/)
or @[nacin](http://twitter.com/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.

## 评价

![](https://secure.gravatar.com/avatar/c00d5de7fdcf70f8b7620cefb0df0018272bd68f9e9c5aee62f356edad0f0a03?
s=60&d=retro&r=g)

### 󠀁[Must have for dev](https://wordpress.org/support/topic/must-have-for-dev/)󠁿

 [Marcin Pietrzak](https://profiles.wordpress.org/iworks/) 2024 年 3 月 18 日

Always on dev site. Awesome! Thank you!

![](https://secure.gravatar.com/avatar/435592ea534e9aace6cfd76d7fc037d298263b5a17329adeb4ad063bc993ac51?
s=60&d=retro&r=g)

### 󠀁[Very easy to use and useful for debugging](https://wordpress.org/support/topic/very-easy-to-use-and-useful-for-debugging-2/)󠁿

 [capbussat](https://profiles.wordpress.org/capbussat/) 2018 年 3 月 27 日

Very easy to use and useful for debugging your own plugins. (CA) Senzill d’utilitzar
i necessari per fer la depuració de les extensions.

![](https://secure.gravatar.com/avatar/bbf1db9a75131ceff37a58c8613ef2d4d53efa72cf70b87656118f3b8114f9f9?
s=60&d=retro&r=g)

### 󠀁[Essencial Plugin! Thanks…](https://wordpress.org/support/topic/essencial-plugin-thanks/)󠁿

 [Joel Cañas](https://profiles.wordpress.org/joeladolfo2008/) 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.

![](https://secure.gravatar.com/avatar/f34d5a9fd34f61b4d6ab44731572bf8fd714ed3371d0552b245b321c4d188f7e?
s=60&d=retro&r=g)

### 󠀁[Brilliant – thanks](https://wordpress.org/support/topic/brilliant-thanks-3/)󠁿

 [wpjgcy](https://profiles.wordpress.org/wpjgcy/) 2016 年 9 月 3 日

Just what I needed to quickly help to identify issues filling up log files.

![](https://secure.gravatar.com/avatar/6fbe3823308e039911abaebf42a46dfc7189dfdbeb977732b0608cd39aeb8650?
s=60&d=retro&r=g)

### 󠀁[Saved mah butt!](https://wordpress.org/support/topic/saved-mah-butt/)󠁿

 [stimpygato](https://profiles.wordpress.org/stimpygato/) 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!

![](https://secure.gravatar.com/avatar/323cf209e19dd825678e9ccc51bc3f745f96571f1c68af26ae7955c1fa9ad1f2?
s=60&d=retro&r=g)

### 󠀁[A+++ Would use again](https://wordpress.org/support/topic/a-would-use-again/)󠁿

 [Aaron Jorbin](https://profiles.wordpress.org/jorbin/) 2018 年 9 月 25 日

I had a deprecated notice and this logged it perfectly.

 [ 阅读所有10条评价 ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/)

## 贡献者及开发者

「Log Deprecated Notices」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Andrew Nacin ](https://profiles.wordpress.org/nacin/)
 *   [ Aaron Jorbin ](https://profiles.wordpress.org/jorbin/)

「Log Deprecated Notices」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/log-deprecated-notices/contributors)
为本插件所做的贡献。

[帮助将「Log Deprecated Notices」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/log-deprecated-notices)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/log-deprecated-notices/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/log-deprecated-notices/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/log-deprecated-notices/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/log-deprecated-notices/)。

## 额外信息

 *  版本 **0.4.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  语言
 * [English (Canada)](https://en-ca.wordpress.org/plugins/log-deprecated-notices/)、
   [English (US)](https://wordpress.org/plugins/log-deprecated-notices/) 和 [Polish](https://pl.wordpress.org/plugins/log-deprecated-notices/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/log-deprecated-notices)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[deprecated](https://cn.wordpress.org/plugins/tags/deprecated/)
   [E_NOTICE](https://cn.wordpress.org/plugins/tags/e_notice/)[logging](https://cn.wordpress.org/plugins/tags/logging/)
   [WP_DEBUG](https://cn.wordpress.org/plugins/tags/wp_debug/)
 *  [高级视图](https://cn.wordpress.org/plugins/log-deprecated-notices/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  10 条 5 星评价     ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/log-deprecated-notices/reviews/)

## 贡献者

 *   [ Andrew Nacin ](https://profiles.wordpress.org/nacin/)
 *   [ Aaron Jorbin ](https://profiles.wordpress.org/jorbin/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/log-deprecated-notices/)