summaryrefslogtreecommitdiffstats
path: root/wp-content/blogs.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-24 11:37:31 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-24 11:37:31 +0000
commitd0b9489c96a012dfab70136e0fe7953a7d019c04 (patch)
treef88bc3c5dc4e48eac40b1999c0c14ec79fd3a3c4 /wp-content/blogs.php
parent4fd7a402bcc13f45b1a25fd3960de6aa9e7dc24e (diff)
downloadwordpress-mu-d0b9489c96a012dfab70136e0fe7953a7d019c04.tar.gz
wordpress-mu-d0b9489c96a012dfab70136e0fe7953a7d019c04.tar.xz
wordpress-mu-d0b9489c96a012dfab70136e0fe7953a7d019c04.zip
Use status_header(), props momo360modena, fixes #473
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1129 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content/blogs.php')
-rw-r--r--wp-content/blogs.php6
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 &#8212; 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 &#8212; 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;
}