[wp-trac] [WordPress Trac] #10883: db-error.php not used for all DB failures

WordPress Trac noreply at wordpress.org
Fri Jan 25 04:39:56 UTC 2013


#10883: db-error.php not used for all DB failures
-------------------------------------+-----------------------------
 Reporter:  markjaquith              |       Owner:  ryan
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Database                 |     Version:  2.8.4
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |
-------------------------------------+-----------------------------
Changes (by jose@…):

 * cc: jose@… (added)


Comment:

 I am also wondering if this is going to be implemented any time soon. It
 is not true that the standard message appears only on the back-end. In my
 experience db-error.php is not called if there is a connection error on
 the front-end. For the time being, I just added the conditional below just
 before the bail function as suggested above.


 {{{
         if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
                 require_once( WP_CONTENT_DIR . '/db-error.php' );
                 die();
         }
 }}}

 If you don't want to do it permanently, at least give us a filter so we
 can change it through a custom function.

 Thanks.

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


More information about the wp-trac mailing list