From c22edcead642e65ffe461dfbb54552d738c2e01f Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 29 Aug 2008 12:42:47 +0000 Subject: Added 410 Gone error for deleted and spam blog, props selad, fixes #705 git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1457 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-settings.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'wp-settings.php') diff --git a/wp-settings.php b/wp-settings.php index 20be69e..cb9138c 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -332,17 +332,18 @@ if( is_dir( ABSPATH . MUPLUGINDIR ) ) { } $wpdb->show_errors(); -if ( '1' == $current_blog->deleted ) +if ( '1' == $current_blog->deleted ) { + 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 ) graceful_fail( sprintf( __( 'This blog has not been activated yet. If you are having problems activating your blog, please contact %1$s.' ), str_replace( '@', ' AT ', get_site_option( 'admin_email', "support@{$current_site->domain}" ) ) ) ); -if( $current_blog->archived == '1' ) - graceful_fail(__('This blog has been archived or suspended.')); - -if( $current_blog->spam == '1' ) - graceful_fail(__('This blog has been archived or suspended.')); +if( $current_blog->archived == '1' || $current_blog->spam == '1' ) { + header('HTTP/1.1 410 Gone'); + graceful_fail(__('This blog has been archived or suspended.')); +} /** * Should be exactly the same as the default value of SECRET_KEY in wp-config-sample.php -- cgit