Opened 17 years ago
Closed 17 years ago
#11837 closed defect (bug) (fixed)
define('WP_DEBUG', false) generates a silent E_NOTICE
| Reported by: | nacin | Owned by: | westi |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | Warnings/Notices | Version: | 2.9 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Realized this would be a better way to do it