]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-blog-header.php
Wordpress 3.1.2
[autoinstalls/wordpress.git] / wp-blog-header.php
index c087324fc1c08218e72445310cd317f3e89f5aed..0f7118f3c1642b1692fe118176b475a1f68cd3f9 100644 (file)
@@ -1,21 +1,20 @@
 <?php
+/**
+ * Loads the WordPress environment and template.
+ *
+ * @package WordPress
+ */
 
-if (! isset($wp_did_header)):
-if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
-       if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
-       else $path = 'wp-admin/';
-    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
-}
+if ( !isset($wp_did_header) ) {
 
-$wp_did_header = true;
+       $wp_did_header = true;
 
-require_once( dirname(__FILE__) . '/wp-config.php');
+       require_once( dirname(__FILE__) . '/wp-load.php' );
 
-wp();
-gzip_compression();
+       wp();
 
-require_once(ABSPATH . WPINC . '/template-loader.php');
+       require_once( ABSPATH . WPINC . '/template-loader.php' );
 
-endif;
+}
 
 ?>
\ No newline at end of file