]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/theme-compat/header.php
Wordpress 3.0
[autoinstalls/wordpress.git] / wp-includes / theme-compat / header.php
similarity index 74%
rename from wp-content/themes/default/header.php
rename to wp-includes/theme-compat/header.php
index 5c21f94d185c2f692a4902dede17dbbc5cc87cac..6089b181101489d0be510811e3e43ac763f7ff49 100644 (file)
@@ -1,8 +1,13 @@
 <?php
 /**
  * @package WordPress
- * @subpackage Default_Theme
+ * @subpackage Theme_Compat
+ * @deprecated 3.0
+ * 
+ * This file is here for Backwards compatibility with old themes and will be removed in a future version
+ * 
  */
+_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
@@ -18,7 +23,7 @@
 <style type="text/css" media="screen">
 
 <?php
-// Checks to see whether it needs a sidebar or not
+// Checks to see whether it needs a sidebar
 if ( empty($withcomments) && !is_single() ) {
 ?>
        #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
@@ -38,7 +43,7 @@ if ( empty($withcomments) && !is_single() ) {
 
 <div id="header" role="banner">
        <div id="headerimg">
-               <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
+               <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h1>
                <div class="description"><?php bloginfo('description'); ?></div>
        </div>
 </div>