diff options
| -rw-r--r-- | wp-content/blogs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-content/blogs.php b/wp-content/blogs.php index e19fb9d..798c433 100644 --- a/wp-content/blogs.php +++ b/wp-content/blogs.php @@ -3,7 +3,7 @@ define( 'SHORTINIT', true ); // this prevents most of WP from being loaded require_once( dirname( dirname( __FILE__) ) . '/wp-config.php' ); // absolute includes are faster
if ( $current_blog->archived == '1' || $current_blog->spam == '1' || $current_blog->deleted == '1' ) {
- header('HTTP/1.1 404 Not Found');
+ status_header( 404 );
die('404 — File not found.');
}
@@ -67,7 +67,7 @@ endif; $file = constant( 'ABSPATH' ) . constant( 'UPLOADS' ) . str_replace( '..', '', $_GET[ 'file' ] );
if ( !is_file( $file ) ) {
- header('HTTP/1.1 404 Not Found');
+ status_header( 404 );
die('404 — File not found.');
}
@@ -107,7 +107,7 @@ $modified_timestamp = strtotime($last_modified); if ( ($client_last_modified && $client_etag) ?
(($client_modified_timestamp >= $modified_timestamp) && ($client_etag == $etag)) :
(($client_modified_timestamp >= $modified_timestamp) || ($client_etag == $etag)) ) {
- header('HTTP/1.1 304 Not Modified');
+ status_header( 304 );
exit;
}
|
