johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

Separate handling for `_doing_it_wrong()` calls #739

Closed johnbillion closed 1 year ago

johnbillion commented 1 year ago

Until now QM has not had a separate panel or separate handling of _doing_it_wrong() calls because these trigger a PHP notice and are therefore shown in the PHP Errors panel. However this is only true if WP_DEBUG is enabled. If it's not, then _doing_it_wrong() calls go unnoticed.

Let's introduce a separate Doing It Wrong panel or push these into the PHP Errors panel regardless of WP_DEBUG.

Applies to:

crstauf commented 1 year ago

Pull request: https://github.com/johnbillion/query-monitor/pull/775

crstauf commented 1 year ago

PR merged in https://github.com/johnbillion/query-monitor/commit/a3dba6a07aa5a82599ba080c92ea42818c5d0d84.

johnbillion commented 1 year ago

Thanks for this @crstauf 👍