Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12236 closed defect (bug) (fixed)

Reference WP_DEBUG in wp-config-sample.php

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

Description

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 14 years ago.

Download all attachments as: .zip

Change History (3)

@nacin
14 years ago

#1 @miqrogroove
14 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.

#2 @nacin
14 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.