[wp-trac] [WordPress Trac] #23140: WordPress giving too much info to end users on DB error

WordPress Trac noreply at wordpress.org
Tue Jan 8 15:56:11 UTC 2013


#23140: WordPress giving too much info to end users on DB error
--------------------------+------------------------------
 Reporter:  AKTed         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:3 AKTed]:
 > I do have WP_DEBUG set to `true` (it's on my live testing/staging site).
 So, you're saying if it were `false`, it would show something different to
 end users?

 Yes. It would show "Error establishing a database connection", as in
 http://cl.ly/image/2j371N2R0v1p.

 `wpdb` class only shows detailed errors on front-end if `WP_DEBUG` is
 true: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5/wp-includes/wp-db.php#L539

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23140#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list