Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#12236 closed defect (bug) (fixed)

Reference WP_DEBUG in wp-config-sample.php

Reported by: nacin Owned by: westi
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Warnings/Notices Keywords: dev-feedback
Focuses: Cc:


Too few plugin authors know about or bother with WP_DEBUG. This often means that plugin code can be improved, both from a PHP and WordPress standpoint.

We should attempt to raise WP_DEBUG's profile by including it at the bottom of wp-config-sample.php.

Especially with the addition of deprecated warnings for function arguments, it makes a lot of sense to try to raise awareness of its existence, and this seems like a start.

dd32 also suggested perhaps SCRIPT_DEBUG could be included as well. Consider the patch a POC.

Attachments (1)

12236.diff (498 bytes) - added by nacin 6 years ago.

Download all attachments as: .zip

Change History (3)

@nacin6 years ago

comment:1 @miqrogroove6 years ago

  • Milestone changed from Unassigned to 3.0

+1 A good plugin author is going to get half way through their first plugin and wonder how the you're supposed to debug anything in WordPress env and then seek out and discover that option. Everyone else needs all the help they can get.

comment:2 @nacin6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13185]) Add initial WP_DEBUG define to wp-config-sample.php and suggest plugin/theme developers use it. Fixes #12236

Note: See TracTickets for help on using tickets.