[wp-trac] [WordPress Trac] #10883: db-error.php not used for all DB failures
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 1 02:45:36 UTC 2009
#10883: db-error.php not used for all DB failures
--------------------------+-------------------------------------------------
Reporter: markjaquith | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Cron | Version: 2.8.4
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
db-error.php (the optional custom DB error message file to be placed in
wp-content) does not get included all the time. Sometimes wp-db.php will
use its {{{bail()}}} method to spit out its own message. This code needs
to be there too:
{{{
if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
require_once( WP_CONTENT_DIR . '/db-error.php' );
die();
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10883>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list