Opened 14 years ago
Closed 13 years ago
#22203 closed defect (bug) (fixed)
WP_DEBUG - class wpdb prints errors while WP_DEBUG_DISPLAY is set to false
| Reported by: | storkontheroof | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Database | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The wpdb class prints errors when WP_DEBUG is true:
/wp-includes/wp-db.php line 539/540:
if ( WP_DEBUG )
$this->show_errors();
To me seems this should be WP_DEBUG_DISPLAY.
My settings:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', true);
So logging should be enabled, but display them on screen shouldn't.
Attachments (2)
Change History (14)
#7
follow-up:
↓ 8
@
13 years ago
Why remove the {} in my patch, it's not good programming practice man? I agree with the && instead of & although both do exactly the same thing in this context...
#8
in reply to: ↑ 7
@
13 years ago
Replying to crazycoders:
Why remove the {} in my patch, it's not good programming practice man?
See http://codex.wordpress.org/WordPress_Coding_Standards#Brace_Style.
#9
@
13 years ago
22203.2.patch works as expected for me.
#11
@
13 years ago
22203.2.patch works like a charm.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Should be: