<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[14365] trunk/wp-includes:
  First pass of compatibility code for old themes which relied on using templates from the default theme without expressly identifying it as the parent theme
 .</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14365">14365</a></dd>
<dt>Author</dt> <dd>westi</dd>
<dt>Date</dt> <dd>2010-05-03 09:57:24 +0000 (Mon, 03 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>First pass of compatibility code for old themes which relied on using templates from the default theme without expressly identifying it as the parent theme.
Fixes <a href="http://trac.wordpress.org/ticket/12425">#12425</a> and <a href="http://trac.wordpress.org/ticket/13009">#13009</a>.
The fallback to these template files is now depreceated and will be removed in a future version.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludescommenttemplatephp">trunk/wp-includes/comment-template.php</a></li>
<li><a href="#trunkwpincludesgeneraltemplatephp">trunk/wp-includes/general-template.php</a></li>
<li><a href="#trunkwpincludesthemephp">trunk/wp-includes/theme.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/wp-includes/theme-compat/</li>
<li><a href="#trunkwpincludesthemecompatcommentspopupphp">trunk/wp-includes/theme-compat/comments-popup.php</a></li>
<li><a href="#trunkwpincludesthemecompatcommentsphp">trunk/wp-includes/theme-compat/comments.php</a></li>
<li><a href="#trunkwpincludesthemecompatfooterphp">trunk/wp-includes/theme-compat/footer.php</a></li>
<li><a href="#trunkwpincludesthemecompatheaderphp">trunk/wp-includes/theme-compat/header.php</a></li>
<li><a href="#trunkwpincludesthemecompatsidebarphp">trunk/wp-includes/theme-compat/sidebar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludescommenttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/comment-template.php (14364 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/comment-template.php        2010-05-03 09:51:40 UTC (rev 14364)
+++ trunk/wp-includes/comment-template.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -889,8 +889,8 @@
</span><span class="cx">                 require( $include );
</span><span class="cx">         elseif ( file_exists( TEMPLATEPATH . $file ) )
</span><span class="cx">                 require( TEMPLATEPATH .  $file );
</span><del>-        else
-                require( get_theme_root() . '/'.WP_FALLBACK_THEME.'/comments.php');
</del><ins>+        else // Backward compat code will be removed in a future release
+                require( WPINC . '/theme-compat/comments.php');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkwpincludesgeneraltemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/general-template.php (14364 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/general-template.php        2010-05-03 09:51:40 UTC (rev 14364)
+++ trunk/wp-includes/general-template.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -10,8 +10,7 @@
</span><span class="cx">  * Load header template.
</span><span class="cx">  *
</span><span class="cx">  * Includes the header template for a theme or if a name is specified then a
</span><del>- * specialised header will be included. If the theme contains no header.php file
- * then the header from the WP_FALLBACK_THEME theme will be included.
</del><ins>+ * specialised header will be included.
</ins><span class="cx">  *
</span><span class="cx">  * For the parameter, if the file is called &quot;header-special.php&quot; then specify
</span><span class="cx">  * &quot;special&quot;.
</span><span class="lines">@@ -31,16 +30,16 @@
</span><span class="cx"> 
</span><span class="cx">         $templates[] = &quot;header.php&quot;;
</span><span class="cx"> 
</span><ins>+        // Backward compat code will be removed in a future release
</ins><span class="cx">         if ('' == locate_template($templates, true))
</span><del>-                load_template( get_theme_root() . '/'. WP_FALLBACK_THEME. '/header.php');
</del><ins>+                load_template( WPINC . '/theme-compat/header.php');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Load footer template.
</span><span class="cx">  *
</span><span class="cx">  * Includes the footer template for a theme or if a name is specified then a
</span><del>- * specialised footer will be included. If the theme contains no footer.php file
- * then the footer from the default theme will be included.
</del><ins>+ * specialised footer will be included.
</ins><span class="cx">  *
</span><span class="cx">  * For the parameter, if the file is called &quot;footer-special.php&quot; then specify
</span><span class="cx">  * &quot;special&quot;.
</span><span class="lines">@@ -60,16 +59,16 @@
</span><span class="cx"> 
</span><span class="cx">         $templates[] = &quot;footer.php&quot;;
</span><span class="cx"> 
</span><ins>+        // Backward compat code will be removed in a future release
</ins><span class="cx">         if ('' == locate_template($templates, true))
</span><del>-                load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/footer.php');
</del><ins>+                load_template( WPINC . '/theme-compat/footer.php');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Load sidebar template.
</span><span class="cx">  *
</span><span class="cx">  * Includes the sidebar template for a theme or if a name is specified then a
</span><del>- * specialised sidebar will be included. If the theme contains no sidebar.php
- * file then the sidebar from the default theme will be included.
</del><ins>+ * specialised sidebar will be included.
</ins><span class="cx">  *
</span><span class="cx">  * For the parameter, if the file is called &quot;sidebar-special.php&quot; then specify
</span><span class="cx">  * &quot;special&quot;.
</span><span class="lines">@@ -89,8 +88,9 @@
</span><span class="cx"> 
</span><span class="cx">         $templates[] = &quot;sidebar.php&quot;;
</span><span class="cx"> 
</span><ins>+        // Backward compat code will be removed in a future release
</ins><span class="cx">         if ('' == locate_template($templates, true))
</span><del>-                load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/sidebar.php');
</del><ins>+                load_template( WPINC . '/theme-compat/sidebar.php');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkwpincludesthemecompatcommentspopupphp"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/theme-compat/comments-popup.php (0 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme-compat/comments-popup.php                                (rev 0)
+++ trunk/wp-includes/theme-compat/comments-popup.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -0,0 +1,129 @@
</span><ins>+&lt;?php
+/**
+ * @package WordPress
+ * @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( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments-popup.php template in your theme.');
+?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+     &lt;title&gt;&lt;?php echo get_option('blogname'); ?&gt; - Comments on &lt;?php the_title(); ?&gt;&lt;/title&gt;
+
+        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php echo get_option('blog_charset'); ?&gt;&quot; /&gt;
+        &lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
+                @import url( &lt;?php bloginfo('stylesheet_url'); ?&gt; );
+                body { margin: 3px; }
+        &lt;/style&gt;
+
+&lt;/head&gt;
+&lt;body id=&quot;commentspopup&quot;&gt;
+
+&lt;h1 id=&quot;header&quot;&gt;&lt;a href=&quot;&quot; title=&quot;&lt;?php echo get_option('blogname'); ?&gt;&quot;&gt;&lt;?php echo get_option('blogname'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
+
+&lt;?php
+/* Don't remove these lines. */
+add_filter('comment_text', 'popuplinks');
+if ( have_posts() ) :
+while ( have_posts() ) : the_post();
+?&gt;
+&lt;h2 id=&quot;comments&quot;&gt;Comments&lt;/h2&gt;
+
+&lt;p&gt;&lt;a href=&quot;&lt;?php echo get_post_comments_feed_link($post-&gt;ID); ?&gt;&quot;&gt;&lt;abbr title=&quot;Really Simple Syndication&quot;&gt;RSS&lt;/abbr&gt; feed for comments on this post.&lt;/a&gt;&lt;/p&gt;
+
+&lt;?php if ( pings_open() ) { ?&gt;
+&lt;p&gt;The &lt;abbr title=&quot;Universal Resource Locator&quot;&gt;URL&lt;/abbr&gt; to TrackBack this entry is: &lt;em&gt;&lt;?php trackback_url() ?&gt;&lt;/em&gt;&lt;/p&gt;
+&lt;?php } ?&gt;
+
+&lt;?php
+// this line is WordPress' motor, do not delete it.
+$commenter = wp_get_current_commenter();
+extract($commenter);
+$comments = get_approved_comments($id);
+$post = get_post($id);
+if ( post_password_required($post) ) {  // and it doesn't match the cookie
+        echo(get_the_password_form());
+} else { ?&gt;
+
+&lt;?php if ($comments) { ?&gt;
+&lt;ol id=&quot;commentlist&quot;&gt;
+&lt;?php foreach ($comments as $comment) { ?&gt;
+        &lt;li id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;
+        &lt;?php comment_text() ?&gt;
+        &lt;p&gt;&lt;cite&gt;&lt;?php comment_type('Comment', 'Trackback', 'Pingback'); ?&gt; by &lt;?php comment_author_link() ?&gt; &amp;#8212; &lt;?php comment_date() ?&gt; @ &lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot;&gt;&lt;?php comment_time() ?&gt;&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;
+        &lt;/li&gt;
+
+&lt;?php } // end for each comment ?&gt;
+&lt;/ol&gt;
+&lt;?php } else { // this is displayed if there are no comments so far ?&gt;
+        &lt;p&gt;No comments yet.&lt;/p&gt;
+&lt;?php } ?&gt;
+
+&lt;?php if ( comments_open() ) { ?&gt;
+&lt;h2&gt;Leave a comment&lt;/h2&gt;
+&lt;p&gt;Line and paragraph breaks automatic, e-mail address never displayed, &lt;acronym title=&quot;Hypertext Markup Language&quot;&gt;HTML&lt;/acronym&gt; allowed: &lt;code&gt;&lt;?php echo allowed_tags(); ?&gt;&lt;/code&gt;&lt;/p&gt;
+
+&lt;form action=&quot;&lt;?php echo get_option('siteurl'); ?&gt;/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;
+&lt;?php if ( $user_ID ) : ?&gt;
+        &lt;p&gt;Logged in as &lt;a href=&quot;&lt;?php echo get_option('siteurl'); ?&gt;/wp-admin/profile.php&quot;&gt;&lt;?php echo $user_identity; ?&gt;&lt;/a&gt;. &lt;a href=&quot;&lt;?php echo wp_logout_url(get_permalink()); ?&gt;&quot; title=&quot;Log out of this account&quot;&gt;Log out &amp;raquo;&lt;/a&gt;&lt;/p&gt;
+&lt;?php else : ?&gt;
+        &lt;p&gt;
+          &lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; class=&quot;textarea&quot; value=&quot;&lt;?php echo esc_attr($comment_author); ?&gt;&quot; size=&quot;28&quot; tabindex=&quot;1&quot; /&gt;
+           &lt;label for=&quot;author&quot;&gt;Name&lt;/label&gt;
+        &lt;/p&gt;
+
+        &lt;p&gt;
+          &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo esc_attr($comment_author_email); ?&gt;&quot; size=&quot;28&quot; tabindex=&quot;2&quot; /&gt;
+           &lt;label for=&quot;email&quot;&gt;E-mail&lt;/label&gt;
+        &lt;/p&gt;
+
+        &lt;p&gt;
+          &lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;&lt;?php echo esc_attr($comment_author_url); ?&gt;&quot; size=&quot;28&quot; tabindex=&quot;3&quot; /&gt;
+           &lt;label for=&quot;url&quot;&gt;&lt;abbr title=&quot;Universal Resource Locator&quot;&gt;URL&lt;/abbr&gt;&lt;/label&gt;
+        &lt;/p&gt;
+&lt;?php endif; ?&gt;
+
+        &lt;p&gt;
+          &lt;label for=&quot;comment&quot;&gt;Your Comment&lt;/label&gt;
+        &lt;br /&gt;
+          &lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;70&quot; rows=&quot;4&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;
+        &lt;/p&gt;
+
+        &lt;p&gt;
+      &lt;input type=&quot;hidden&quot; name=&quot;comment_post_ID&quot; value=&quot;&lt;?php echo $id; ?&gt;&quot; /&gt;
+          &lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo esc_attr($_SERVER[&quot;REQUEST_URI&quot;]); ?&gt;&quot; /&gt;
+          &lt;input name=&quot;submit&quot; type=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;Say It!&quot; /&gt;
+        &lt;/p&gt;
+        &lt;?php do_action('comment_form', $post-&gt;ID); ?&gt;
+&lt;/form&gt;
+&lt;?php } else { // comments are closed ?&gt;
+&lt;p&gt;Sorry, the comment form is closed at this time.&lt;/p&gt;
+&lt;?php }
+} // end password check
+?&gt;
+
+&lt;div&gt;&lt;strong&gt;&lt;a href=&quot;javascript:window.close()&quot;&gt;Close this window.&lt;/a&gt;&lt;/strong&gt;&lt;/div&gt;
+
+&lt;?php // if you delete this the sky will fall on your head
+endwhile; //endwhile have_posts()
+else: //have_posts()
+?&gt;
+&lt;p&gt;Sorry, no posts matched your criteria.&lt;/p&gt;
+&lt;?php endif; ?&gt;
+&lt;!-- // this is just the end of the motor - don't touch that line either :) --&gt;
+&lt;?php //} ?&gt;
+&lt;p class=&quot;credit&quot;&gt;&lt;?php timer_stop(1); ?&gt; &lt;cite&gt;Powered by &lt;a href=&quot;http://wordpress.org/&quot; title=&quot;Powered by WordPress, state-of-the-art semantic personal publishing platform&quot;&gt;&lt;strong&gt;WordPress&lt;/strong&gt;&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;
+&lt;?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?&gt;
+&lt;script type=&quot;text/javascript&quot;&gt;
+&lt;!--
+document.onkeypress = function esc(e) {
+        if(typeof(e) == &quot;undefined&quot;) { e=event; }
+        if (e.keyCode == 27) { self.close(); }
+}
+// --&gt;
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesthemecompatcommentsphp"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/theme-compat/comments.php (0 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme-compat/comments.php                                (rev 0)
+++ trunk/wp-includes/theme-compat/comments.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -0,0 +1,101 @@
</span><ins>+&lt;?php
+/**
+ * @package WordPress
+ * @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( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments.php template in your theme.');
+
+// Do not delete these lines
+        if (!empty($_SERVER['SCRIPT_FILENAME']) &amp;&amp; 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+                die ('Please do not load this page directly. Thanks!');
+
+        if ( post_password_required() ) { ?&gt;
+                &lt;p class=&quot;nocomments&quot;&gt;This post is password protected. Enter the password to view comments.&lt;/p&gt;
+        &lt;?php
+                return;
+        }
+?&gt;
+
+&lt;!-- You can start editing here. --&gt;
+
+&lt;?php if ( have_comments() ) : ?&gt;
+        &lt;h3 id=&quot;comments&quot;&gt;&lt;?php comments_number('No Responses', 'One Response', '% Responses' );?&gt; to &amp;#8220;&lt;?php the_title(); ?&gt;&amp;#8221;&lt;/h3&gt;
+
+        &lt;div class=&quot;navigation&quot;&gt;
+                &lt;div class=&quot;alignleft&quot;&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
+                &lt;div class=&quot;alignright&quot;&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
+        &lt;/div&gt;
+
+        &lt;ol class=&quot;commentlist&quot;&gt;
+        &lt;?php wp_list_comments(); ?&gt;
+        &lt;/ol&gt;
+
+        &lt;div class=&quot;navigation&quot;&gt;
+                &lt;div class=&quot;alignleft&quot;&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
+                &lt;div class=&quot;alignright&quot;&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
+        &lt;/div&gt;
+ &lt;?php else : // this is displayed if there are no comments so far ?&gt;
+
+        &lt;?php if ( comments_open() ) : ?&gt;
+                &lt;!-- If comments are open, but there are no comments. --&gt;
+
+         &lt;?php else : // comments are closed ?&gt;
+                &lt;!-- If comments are closed. --&gt;
+                &lt;p class=&quot;nocomments&quot;&gt;Comments are closed.&lt;/p&gt;
+
+        &lt;?php endif; ?&gt;
+&lt;?php endif; ?&gt;
+
+
+&lt;?php if ( comments_open() ) : ?&gt;
+
+&lt;div id=&quot;respond&quot;&gt;
+
+&lt;h3&gt;&lt;?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?&gt;&lt;/h3&gt;
+
+&lt;div class=&quot;cancel-comment-reply&quot;&gt;
+        &lt;small&gt;&lt;?php cancel_comment_reply_link(); ?&gt;&lt;/small&gt;
+&lt;/div&gt;
+
+&lt;?php if ( get_option('comment_registration') &amp;&amp; !is_user_logged_in() ) : ?&gt;
+&lt;p&gt;You must be &lt;a href=&quot;&lt;?php echo wp_login_url( get_permalink() ); ?&gt;&quot;&gt;logged in&lt;/a&gt; to post a comment.&lt;/p&gt;
+&lt;?php else : ?&gt;
+
+&lt;form action=&quot;&lt;?php echo get_option('siteurl'); ?&gt;/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;
+
+&lt;?php if ( is_user_logged_in() ) : ?&gt;
+
+&lt;p&gt;Logged in as &lt;a href=&quot;&lt;?php echo get_option('siteurl'); ?&gt;/wp-admin/profile.php&quot;&gt;&lt;?php echo $user_identity; ?&gt;&lt;/a&gt;. &lt;a href=&quot;&lt;?php echo wp_logout_url(get_permalink()); ?&gt;&quot; title=&quot;Log out of this account&quot;&gt;Log out &amp;raquo;&lt;/a&gt;&lt;/p&gt;
+
+&lt;?php else : ?&gt;
+
+&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;&lt;?php echo esc_attr($comment_author); ?&gt;&quot; size=&quot;22&quot; tabindex=&quot;1&quot; &lt;?php if ($req) echo &quot;aria-required='true'&quot;; ?&gt; /&gt;
+&lt;label for=&quot;author&quot;&gt;&lt;small&gt;Name &lt;?php if ($req) echo &quot;(required)&quot;; ?&gt;&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
+
+&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo esc_attr($comment_author_email); ?&gt;&quot; size=&quot;22&quot; tabindex=&quot;2&quot; &lt;?php if ($req) echo &quot;aria-required='true'&quot;; ?&gt; /&gt;
+&lt;label for=&quot;email&quot;&gt;&lt;small&gt;Mail (will not be published) &lt;?php if ($req) echo &quot;(required)&quot;; ?&gt;&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
+
+&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;&lt;?php echo esc_attr($comment_author_url); ?&gt;&quot; size=&quot;22&quot; tabindex=&quot;3&quot; /&gt;
+&lt;label for=&quot;url&quot;&gt;&lt;small&gt;Website&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
+
+&lt;?php endif; ?&gt;
+
+&lt;!--&lt;p&gt;&lt;small&gt;&lt;strong&gt;XHTML:&lt;/strong&gt; You can use these tags: &lt;code&gt;&lt;?php echo allowed_tags(); ?&gt;&lt;/code&gt;&lt;/small&gt;&lt;/p&gt;--&gt;
+
+&lt;p&gt;&lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;58&quot; rows=&quot;10&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;&lt;/p&gt;
+
+&lt;p&gt;&lt;input name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;Submit Comment&quot; /&gt;
+&lt;?php comment_id_fields(); ?&gt;
+&lt;/p&gt;
+&lt;?php do_action('comment_form', $post-&gt;ID); ?&gt;
+
+&lt;/form&gt;
+
+&lt;?php endif; // If registration required and not logged in ?&gt;
+&lt;/div&gt;
+
+&lt;?php endif; // if you delete this the sky will fall on your head ?&gt;
</ins></span></pre></div>
<a id="trunkwpincludesthemecompatfooterphp"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/theme-compat/footer.php (0 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme-compat/footer.php                                (rev 0)
+++ trunk/wp-includes/theme-compat/footer.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+&lt;?php
+/**
+ * @package WordPress
+ * @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( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a footer.php template in your theme.');
+?&gt;
+
+&lt;hr /&gt;
+&lt;div id=&quot;footer&quot; role=&quot;contentinfo&quot;&gt;
+&lt;!-- If you'd like to support WordPress, having the &quot;powered by&quot; link somewhere on your blog is the best way; it's our only promotion or advertising. --&gt;
+        &lt;p&gt;
+                &lt;?php bloginfo('name'); ?&gt; is proudly powered by
+                &lt;a href=&quot;http://wordpress.org/&quot;&gt;WordPress&lt;/a&gt;
+                &lt;br /&gt;&lt;a href=&quot;&lt;?php bloginfo('rss2_url'); ?&gt;&quot;&gt;Entries (RSS)&lt;/a&gt;
+                and &lt;a href=&quot;&lt;?php bloginfo('comments_rss2_url'); ?&gt;&quot;&gt;Comments (RSS)&lt;/a&gt;.
+                &lt;!-- &lt;?php echo get_num_queries(); ?&gt; queries. &lt;?php timer_stop(1); ?&gt; seconds. --&gt;
+        &lt;/p&gt;
+&lt;/div&gt;
+&lt;/div&gt;
+
+&lt;!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --&gt;
+&lt;?php /* &quot;Just what do you think you're doing Dave?&quot; */ ?&gt;
+
+                &lt;?php wp_footer(); ?&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkwpincludesthemecompatheaderphp"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/theme-compat/header.php (0 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme-compat/header.php                                (rev 0)
+++ trunk/wp-includes/theme-compat/header.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+&lt;?php
+/**
+ * @package WordPress
+ * @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( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a header.php template in your theme.');
+?&gt;
+&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &lt;?php language_attributes(); ?&gt;&gt;
+
+&lt;head profile=&quot;http://gmpg.org/xfn/11&quot;&gt;
+&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('charset'); ?&gt;&quot; /&gt;
+
+&lt;title&gt;&lt;?php wp_title('&amp;laquo;', true, 'right'); ?&gt; &lt;?php bloginfo('name'); ?&gt;&lt;/title&gt;
+
+&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php bloginfo('stylesheet_url'); ?&gt;&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
+&lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo('pingback_url'); ?&gt;&quot; /&gt;
+
+&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
+
+&lt;?php
+// Checks to see whether it needs a sidebar
+if ( empty($withcomments) &amp;&amp; !is_single() ) {
+?&gt;
+        #page { background: url(&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/kubrickbg-&lt;?php bloginfo('text_direction'); ?&gt;.jpg&quot;) repeat-y top; border: none; }
+&lt;?php } else { // No sidebar ?&gt;
+        #page { background: url(&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/kubrickbgwide.jpg&quot;) repeat-y top; border: none; }
+&lt;?php } ?&gt;
+
+&lt;/style&gt;
+
+&lt;?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?&gt;
+
+&lt;?php wp_head(); ?&gt;
+&lt;/head&gt;
+&lt;body &lt;?php body_class(); ?&gt;&gt;
+&lt;div id=&quot;page&quot;&gt;
+
+
+&lt;div id=&quot;header&quot; role=&quot;banner&quot;&gt;
+        &lt;div id=&quot;headerimg&quot;&gt;
+                &lt;h1&gt;&lt;a href=&quot;&lt;?php echo home_url(); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
+                &lt;div class=&quot;description&quot;&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;
+        &lt;/div&gt;
+&lt;/div&gt;
+&lt;hr /&gt;
</ins></span></pre></div>
<a id="trunkwpincludesthemecompatsidebarphp"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/theme-compat/sidebar.php (0 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme-compat/sidebar.php                                (rev 0)
+++ trunk/wp-includes/theme-compat/sidebar.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -0,0 +1,88 @@
</span><ins>+&lt;?php
+/**
+ * @package WordPress
+ * @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( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a sidebar.php template in your theme.');
+?&gt;
+        &lt;div id=&quot;sidebar&quot; role=&quot;complementary&quot;&gt;
+                &lt;ul&gt;
+                        &lt;?php         /* Widgetized sidebar, if you have the plugin installed. */
+                                        if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?&gt;
+                        &lt;li&gt;
+                                &lt;?php get_search_form(); ?&gt;
+                        &lt;/li&gt;
+
+                        &lt;!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
+                        &lt;li&gt;&lt;h2&gt;Author&lt;/h2&gt;
+                        &lt;p&gt;A little something about you, the author. Nothing lengthy, just an overview.&lt;/p&gt;
+                        &lt;/li&gt;
+                        --&gt;
+
+                        &lt;?php if ( is_404() || is_category() || is_day() || is_month() ||
+                                                is_year() || is_search() || is_paged() ) {
+                        ?&gt; &lt;li&gt;
+
+                        &lt;?php /* If this is a 404 page */ if (is_404()) { ?&gt;
+                        &lt;?php /* If this is a category archive */ } elseif (is_category()) { ?&gt;
+                        &lt;p&gt;You are currently browsing the archives for the &lt;?php single_cat_title(''); ?&gt; category.&lt;/p&gt;
+
+                        &lt;?php /* If this is a daily archive */ } elseif (is_day()) { ?&gt;
+                        &lt;p&gt;You are currently browsing the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives
+                        for the day &lt;?php the_time('l, F jS, Y'); ?&gt;.&lt;/p&gt;
+
+                        &lt;?php /* If this is a monthly archive */ } elseif (is_month()) { ?&gt;
+                        &lt;p&gt;You are currently browsing the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives
+                        for &lt;?php the_time('F, Y'); ?&gt;.&lt;/p&gt;
+
+                        &lt;?php /* If this is a yearly archive */ } elseif (is_year()) { ?&gt;
+                        &lt;p&gt;You are currently browsing the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives
+                        for the year &lt;?php the_time('Y'); ?&gt;.&lt;/p&gt;
+
+                        &lt;?php /* If this is a search result */ } elseif (is_search()) { ?&gt;
+                        &lt;p&gt;You have searched the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives
+                        for &lt;strong&gt;'&lt;?php the_search_query(); ?&gt;'&lt;/strong&gt;. If you are unable to find anything in these search results, you can try one of these links.&lt;/p&gt;
+
+                        &lt;?php /* If this set is paginated */ } elseif ( !empty($_GET['paged']) ) { ?&gt;
+                        &lt;p&gt;You are currently browsing the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives.&lt;/p&gt;
+
+                        &lt;?php } ?&gt;
+
+                        &lt;/li&gt;
+                &lt;?php }?&gt;
+                &lt;/ul&gt;
+                &lt;ul role=&quot;navigation&quot;&gt;
+                        &lt;?php wp_list_pages('title_li=&lt;h2&gt;Pages&lt;/h2&gt;' ); ?&gt;
+
+                        &lt;li&gt;&lt;h2&gt;Archives&lt;/h2&gt;
+                                &lt;ul&gt;
+                                &lt;?php wp_get_archives(array('type' =&gt; 'monthly')); ?&gt;
+                                &lt;/ul&gt;
+                        &lt;/li&gt;
+
+                        &lt;?php wp_list_categories(array('show_count' =&gt; 1, 'title_li' =&gt; '&lt;h2&gt;Categories&lt;/h2&gt;')); ?&gt;
+                &lt;/ul&gt;
+                &lt;ul&gt;
+                        &lt;?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?&gt;
+                                &lt;?php wp_list_bookmarks(); ?&gt;
+
+                                &lt;li&gt;&lt;h2&gt;Meta&lt;/h2&gt;
+                                &lt;ul&gt;
+                                        &lt;?php wp_register(); ?&gt;
+                                        &lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt;
+                                        &lt;li&gt;&lt;a href=&quot;http://validator.w3.org/check/referer&quot; title=&quot;This page validates as XHTML 1.0 Transitional&quot;&gt;Valid &lt;abbr title=&quot;eXtensible HyperText Markup Language&quot;&gt;XHTML&lt;/abbr&gt;&lt;/a&gt;&lt;/li&gt;
+                                        &lt;li&gt;&lt;a href=&quot;http://gmpg.org/xfn/&quot;&gt;&lt;abbr title=&quot;XHTML Friends Network&quot;&gt;XFN&lt;/abbr&gt;&lt;/a&gt;&lt;/li&gt;
+                                        &lt;li&gt;&lt;a href=&quot;http://wordpress.org/&quot; title=&quot;Powered by WordPress, state-of-the-art semantic personal publishing platform.&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
+                                        &lt;?php wp_meta(); ?&gt;
+                                &lt;/ul&gt;
+                                &lt;/li&gt;
+                        &lt;?php } ?&gt;
+
+                        &lt;?php endif; ?&gt;
+                &lt;/ul&gt;
+        &lt;/div&gt;
+
</ins></span></pre></div>
<a id="trunkwpincludesthemephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/theme.php (14364 => 14365)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/theme.php        2010-05-03 09:51:40 UTC (rev 14364)
+++ trunk/wp-includes/theme.php        2010-05-03 09:57:24 UTC (rev 14365)
</span><span class="lines">@@ -983,9 +983,7 @@
</span><span class="cx">  * Retrieve path of comment popup template in current or parent template.
</span><span class="cx">  *
</span><span class="cx">  * Checks for comment popup template in current template, if it exists or in the
</span><del>- * parent template. If it doesn't exist, then it retrieves the comment-popup.php
- * file from the WP_FALLBACK_THEME theme. The WP_FALLBACK_THEME theme must then exist for it to
- * work.
</del><ins>+ * parent template.
</ins><span class="cx">  *
</span><span class="cx">  * @since 1.5.0
</span><span class="cx">  * @uses apply_filters() Calls 'comments_popup_template' filter on path.
</span><span class="lines">@@ -994,8 +992,10 @@
</span><span class="cx">  */
</span><span class="cx"> function get_comments_popup_template() {
</span><span class="cx">         $template = locate_template(array(&quot;comments-popup.php&quot;));
</span><ins>+
+        // Backward compat code will be removed in a future release
</ins><span class="cx">         if ('' == $template)
</span><del>-                $template = get_theme_root() . '/' . WP_FALLBACK_THEME . '/comments-popup.php';
</del><ins>+                $template = WPINC . '/theme-compat/comments-popup.php';
</ins><span class="cx"> 
</span><span class="cx">         return apply_filters('comments_popup_template', $template);
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>