[wpmu-trac] [WordPress MU Trac] #946: modification to /wp-settings.php for extra error support

WordPress MU Trac wpmu-trac at lists.automattic.com
Sat Apr 4 11:05:47 GMT 2009


#946: modification to /wp-settings.php for extra error support
-------------------------+--------------------------------------------------
 Reporter:  frumph       |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:  2.7.1   
Component:  General      |     Version:  2.7.1   
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 Right below $wpdb->show_errors();, on line 409 replace code:
 {{{
 if ( '1' == $current_blog->deleted ) {
         if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
                 require_once( WP_CONTENT_DIR . '/blog-deleted.php' );
                 die();
         } else {
                 header('HTTP/1.1 410 Gone');
                 graceful_fail(__('This user has elected to delete their
 account and the content is no longer available.'));
         }
 }

 if ( '2' == $current_blog->deleted ) {
         if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
                 require_once( WP_CONTENT_DIR . '/blog-inactive.php' );
                 die();
         } else {
                 graceful_fail( sprintf( __( 'This blog has not been
 activated yet. If you are having problems activating your blog, please
 contact <a href="mailto:%1$s">%1$s</a>.' ), str_replace( '@', ' AT ',
 get_site_option( 'admin_email', "support@{$current_site->domain}" ) ) ) );
         }
 }

 if( $current_blog->archived == '1' || $current_blog->spam == '1' ) {
         if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
                 require_once( WP_CONTENT_DIR . '/blog-suspended.php' );
                 die();
         } else {
                 header('HTTP/1.1 410 Gone');
                 graceful_fail(__('This blog has been archived or
 suspended.'));
         }
 }
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/946>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list