Make WordPress Core


Ignore:
Timestamp:
01/25/2010 10:09:43 PM (17 years ago)
Author:
ryan
Message:

Deprecate graceful_fail(). see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-load.php

    r12787 r12827  
    9292                        } else {
    9393                                        header('HTTP/1.1 410 Gone');
    94                                         graceful_fail(__('This user has elected to delete their account and the content is no longer available.'));
     94                                        wp_die(__('This user has elected to delete their account and the content is no longer available.'));
    9595                        }
     96        } elseif ( '2' == $current_blog->deleted ) {
     97                        if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) )
     98                                return WP_CONTENT_DIR . '/blog-inactive.php';
     99                        else
     100                                wp_die( 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}" ) ) ) );
    96101        }
    97102
    98         if ( '2' == $current_blog->deleted ) {
    99                         if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
    100                                         return WP_CONTENT_DIR . '/blog-inactive.php';
    101                         } else {
    102                                         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}" ) ) ) );
    103                         }
    104         }
    105 
    106         if( $current_blog->archived == '1' || $current_blog->spam == '1' ) {
     103        if ( $current_blog->archived == '1' || $current_blog->spam == '1' ) {
    107104                        if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
    108105                                        return WP_CONTENT_DIR . '/blog-suspended.php';
    109106                        } else {
    110107                                        header('HTTP/1.1 410 Gone');
    111                                         graceful_fail(__('This blog has been archived or suspended.'));
     108                                        wp_die(__('This blog has been archived or suspended.'));
    112109                        }
    113110        }
     111
    114112        return true;
    115113}
Note: See TracChangeset for help on using the changeset viewer.