当我编写主题时,我会启用WP-DEBUG。这确保了正确的PHP代码。
遗憾的是,大多数插件开发人员一直在使用不存在的变量:
echo $args[\'title\'];
Notice: Undefined index: title in /wp-content/plugins/easy-fancybox/easy-fancybox.php on line 301
而不是echo ( isset($args[\'title\']) ? $args[\'title\'] : \'\' );
因此,我在一些插件中永久性地收到数十个通知错误(甚至MU也会收到一个!)多亏了Debugbar 我在我的网站上没有看到他们,中间没有,他们都被驱逐到了最底层。
但我如何才能以同样的方式将它们隐藏在仪表板中?我想把它们推到页面底部。
UPDATE: Actually, Debugbar hides them in Admin and Website the same way, I just didn\'t notice that it didn\'t work for this particular plugin for once. Notices errors were between <script>
tags