[wp-trac] Re: [WordPress Trac] #4207: Pluggable DB Down Page

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 29 18:50:42 GMT 2007


#4207: Pluggable DB Down Page
-------------------------+--------------------------------------------------
 Reporter:  linickx      |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  low          |    Milestone:  2.4      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Old description:

> I believe most pro-bloggers would appreciate this.
>
> Can we have a simple way to "plug" the database down page, i.e once we've
> got wordpress setup the default wordpress error message doesn't look as
> professional as one which was integrated into a users theme.
>
> Something simple inside "~/wp-includes/wp-db.php; function bail()" should
> be enough, I was thinking of ....
>
> {{{function bail($message) { // Just wraps errors in a nice header and
> footer
>         if ( !$this->show_errors )
>                 return false;
>                 if (file_exists('wp-content/db-down.php')) {
>                          include('wp-content/db-down.php');
>                 } else {
>         header( 'Content-Type: text/html; charset=utf-8');
>         echo <<<HEAD
>         <!DOCTYPE htm.... blah blah
>                 }
>                 die();
> }
> }
> }}}
>
> Thanks :)

New description:

 I believe most pro-bloggers would appreciate this.

 Can we have a simple way to "plug" the database down page, i.e once we've
 got wordpress setup the default wordpress error message doesn't look as
 professional as one which was integrated into a users theme.

 Something simple inside "~/wp-includes/wp-db.php; function bail()" should
 be enough, I was thinking of ....

 {{{
 function bail($message) { // Just wraps errors in a nice header and footer
         if ( !$this->show_errors )
                 return false;
                 if (file_exists('wp-content/db-down.php')) {
                          include('wp-content/db-down.php');
                 } else {
         header( 'Content-Type: text/html; charset=utf-8');
         echo <<<HEAD
         <!DOCTYPE htm.... blah blah
                 }
                 die();
 }
 }
 }}}

 Thanks :)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4207#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list