Opened 16 years ago
Closed 16 years ago
#11837 closed defect (bug) (fixed)
define('WP_DEBUG', false) generates a silent E_NOTICE
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0 | Priority: | low |
| Severity: | minor | Version: | 2.9 |
| Component: | Warnings/Notices | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
In wp-settings.php, we're checking if WP_DEBUG is defined and is true. If its not, then we're defining WP_DEBUG as false.
Of course, if WP_DEBUG is defined as false already, then we're generating a silent E_NOTICE (suppressed by the error_reporting initially set in wp-load.php).
Code should check if WP_DEBUG is defined before defining to false.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Realized this would be a better way to do it