<!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>[14708] trunk/wp-content/themes/twentyten: In Twenty Ten,
  documentation and code improvements.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14708">14708</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-17 06:36:11 +0000 (Mon, 17 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>In Twenty Ten, documentation and code improvements. see <a href="http://trac.wordpress.org/ticket/12695">#12695</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyten404php">trunk/wp-content/themes/twentyten/404.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenarchivephp">trunk/wp-content/themes/twentyten/archive.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenattachmentphp">trunk/wp-content/themes/twentyten/attachment.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenauthorphp">trunk/wp-content/themes/twentyten/author.php</a></li>
<li><a href="#trunkwpcontentthemestwentytencategoryphp">trunk/wp-content/themes/twentyten/category.php</a></li>
<li><a href="#trunkwpcontentthemestwentytencommentsphp">trunk/wp-content/themes/twentyten/comments.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenfooterphp">trunk/wp-content/themes/twentyten/footer.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenheaderphp">trunk/wp-content/themes/twentyten/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenindexphp">trunk/wp-content/themes/twentyten/index.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenloopphp">trunk/wp-content/themes/twentyten/loop.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenonecolumnpagephp">trunk/wp-content/themes/twentyten/onecolumn-page.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenpagephp">trunk/wp-content/themes/twentyten/page.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensearchphp">trunk/wp-content/themes/twentyten/search.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensidebarfooterphp">trunk/wp-content/themes/twentyten/sidebar-footer.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensidebarphp">trunk/wp-content/themes/twentyten/sidebar.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensinglephp">trunk/wp-content/themes/twentyten/single.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenstylecss">trunk/wp-content/themes/twentyten/style.css</a></li>
<li><a href="#trunkwpcontentthemestwentytentagphp">trunk/wp-content/themes/twentyten/tag.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentyten404php"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/404.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/404.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/404.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/archive.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/archive.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/archive.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -18,7 +18,15 @@
</span><span class="cx">                 &lt;div id=&quot;container&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+&lt;?php
+        /* Queue the first post, that way we know
+         * what date we're dealing with (if that is the case).
+         *
+         * We reset this later so we can run the loop
+         * properly with a call to rewind_posts().
+         */
+        the_post();
+?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;h1 class=&quot;page-title&quot;&gt;
</span><span class="cx"> &lt;?php if ( is_day() ) : ?&gt;
</span><span class="lines">@@ -31,8 +39,14 @@
</span><span class="cx">                                 &lt;?php _e( 'Blog Archives', 'twentyten' ); ?&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx">                         &lt;/h1&gt;
</span><del>-&lt;?php rewind_posts(); ?&gt;
</del><ins>+
</ins><span class="cx"> &lt;?php
</span><ins>+        /* Since we called the_post() above, we need to
+         * rewind the loop back to the beginning that way
+         * we can run the loop properly, in full.
+         */
+        rewind_posts();
+
</ins><span class="cx">         /* Run the loop for the archives page to output the posts.
</span><span class="cx">          * If you want to overload this in a child theme then include a file
</span><span class="cx">          * called loop-archives.php and that will be used instead.
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenattachmentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/attachment.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/attachment.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/attachment.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">                 &lt;div id=&quot;container&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+&lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;p class=&quot;page-title&quot;&gt;&lt;a href=&quot;&lt;?php echo get_permalink( $post-&gt;post_parent ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title( $post-&gt;post_parent ), 1 ) ); ?&gt;&quot; rel=&quot;gallery&quot;&gt;&amp;larr; &lt;?php echo get_the_title( $post-&gt;post_parent ); ?&gt;&lt;/a&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -98,6 +98,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php comments_template(); ?&gt;
</span><span class="cx"> 
</span><ins>+&lt;?php endwhile; ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #content --&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #container --&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenauthorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/author.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/author.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/author.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -13,11 +13,22 @@
</span><span class="cx">                 &lt;div id=&quot;container&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+&lt;?php
+        /* Queue the first post, that way we know who
+         * the author is when we try to get their name,
+         * URL, description, avatar, etc.
+         *
+         * We reset this later so we can run the loop
+         * properly with a call to rewind_posts().
+         */
+        the_post();
+?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;h1 class=&quot;page-title author&quot;&gt;&lt;?php printf( __( 'Author Archives: %s', 'twentyten' ), &quot;&lt;span class='vcard'&gt;&lt;a class='url fn n' href='&quot; . get_author_posts_url( get_the_author_meta( 'ID' ) ) . &quot;' title='&quot; . esc_attr( get_the_author() ) . &quot;' rel='me'&gt;&quot; . get_the_author() . &quot;&lt;/a&gt;&lt;/span&gt;&quot; ); ?&gt;&lt;/h1&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?&gt;
</del><ins>+&lt;?php
+// If a user has filled out their description, show a bio on their entries.
+if ( get_the_author_meta( 'description' ) ) : ?&gt;
</ins><span class="cx">                                         &lt;div id=&quot;entry-author-info&quot;&gt;
</span><span class="cx">                                                 &lt;div id=&quot;author-avatar&quot;&gt;
</span><span class="cx">                                                         &lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?&gt;
</span><span class="lines">@@ -29,9 +40,13 @@
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-author-info --&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php rewind_posts(); ?&gt;
</del><ins>+&lt;?php
+        /* Since we called the_post() above, we need to
+         * rewind the loop back to the beginning that way
+         * we can run the loop properly, in full.
+         */
+        rewind_posts();
</ins><span class="cx"> 
</span><del>-&lt;?php
</del><span class="cx">         /* Run the loop for the author archive page to output the authors posts
</span><span class="cx">          * If you want to overload this in a child theme then include a file
</span><span class="cx">          * called loop-author.php and that will be used instead.
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytencategoryphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/category.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/category.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/category.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -20,9 +20,7 @@
</span><span class="cx">                                         $category_description = category_description();
</span><span class="cx">                                         if ( ! empty( $category_description ) )
</span><span class="cx">                                                 echo '&lt;div class=&quot;archive-meta&quot;&gt;' . $categorydesc . '&lt;/div&gt;';
</span><del>-                                ?&gt;
</del><span class="cx"> 
</span><del>-                                &lt;?php
</del><span class="cx">                                 /* Run the loop for the category page to output the posts.
</span><span class="cx">                                  * If you want to overload this in a child theme then include a file
</span><span class="cx">                                  * called loop-category.php and that will be used instead.
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytencommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/comments.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/comments.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/comments.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -18,6 +18,10 @@
</span><span class="cx">                                 &lt;div class=&quot;nopassword&quot;&gt;&lt;?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?&gt;&lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- .comments --&gt;
</span><span class="cx"> &lt;?php
</span><ins>+                /* Stop the rest of comments.php from being processed,
+                 * but don't kill the script entirely -- we still have
+                 * to fully load the template.
+                 */
</ins><span class="cx">                 return;
</span><span class="cx">         endif;
</span><span class="cx"> ?&gt;
</span><span class="lines">@@ -27,14 +31,12 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( have_comments() ) : ?&gt;
</span><del>-                        &lt;h3 id=&quot;comments-title&quot;&gt;
-&lt;?php
</del><ins>+                        &lt;h3 id=&quot;comments-title&quot;&gt;&lt;?php
</ins><span class="cx">                         printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
</span><span class="cx">                         number_format_i18n( get_comments_number() ), '&lt;em&gt;' . get_the_title() . '&lt;/em&gt;' );
</span><del>-?&gt;
-                        &lt;/h3&gt;
</del><ins>+                        ?&gt;&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php if ( get_comment_pages_count() &gt; 1 ) : // are there comments to navigate through ?&gt;
</del><ins>+&lt;?php if ( get_comment_pages_count() &gt; 1 ) : // Are there comments to navigate through? ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;navigation&quot;&gt;
</span><span class="cx">                                 &lt;div class=&quot;nav-previous&quot;&gt;&lt;?php previous_comments_link( __( '&amp;larr; Older Comments', 'twentyten' ) ); ?&gt;&lt;/div&gt;
</span><span class="cx">                                 &lt;div class=&quot;nav-next&quot;&gt;&lt;?php next_comments_link( __( 'Newer Comments &amp;rarr;', 'twentyten' ) ); ?&gt;&lt;/div&gt;
</span><span class="lines">@@ -42,27 +44,36 @@
</span><span class="cx"> &lt;?php endif; // check for comment navigation ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;ol class=&quot;commentlist&quot;&gt;
</span><del>-                                &lt;?php wp_list_comments( array( 'callback' =&gt; 'twentyten_comment' ) ); ?&gt;
</del><ins>+                                &lt;?php
+                                        /* Loop through and list the comments. Tell wp_list_comments()
+                                         * to use twentyten_comment() to format the comments.
+                                         * If you want to overload this in a child theme then you can
+                                         * define twentyten_comment() and that will be used instead.
+                                         * See twentyten_comment() in twentyten/functions.php for more.
+                                         */
+                                        wp_list_comments( array( 'callback' =&gt; 'twentyten_comment' ) );
+                                ?&gt;
</ins><span class="cx">                         &lt;/ol&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( get_comment_pages_count() &gt; 1 ) : // are there comments to navigate through ?&gt;
</del><ins>+&lt;?php if ( get_comment_pages_count() &gt; 1 ) : // Are there comments to navigate through? ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;navigation&quot;&gt;
</span><span class="cx">                                 &lt;div class=&quot;nav-previous&quot;&gt;&lt;?php previous_comments_link( __( '&amp;larr; Older Comments', 'twentyten' ) ); ?&gt;&lt;/div&gt;
</span><span class="cx">                                 &lt;div class=&quot;nav-next&quot;&gt;&lt;?php next_comments_link( __( 'Newer Comments &amp;rarr;', 'twentyten' ) ); ?&gt;&lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> &lt;?php endif; // check for comment navigation ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php else : // this is displayed if there are no comments so far ?&gt;
</del><ins>+&lt;?php else : // or, if we don't have comments:
</ins><span class="cx"> 
</span><del>-&lt;?php if ( comments_open() ) : // If comments are open, but there are no comments ?&gt;
</del><ins>+        /* If there are no comments and comments are closed,
+         * let's leave a little note, shall we?
+         */
+        if ( ! comments_open() ) :
+?&gt;
+        &lt;p class=&quot;nocomments&quot;&gt;&lt;?php _e( 'Comments are closed.', 'twentyten' ); ?&gt;&lt;/p&gt;
+&lt;?php endif; // end ! comments_opened() ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php else : // if comments are closed ?&gt;
</del><ins>+&lt;?php endif; // end have_comments() ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;p class=&quot;nocomments&quot;&gt;&lt;?php _e( 'Comments are closed.', 'twentyten' ); ?&gt;&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;?php comment_form(); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;&lt;!-- #comments --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/footer.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/footer.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/footer.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx">         &lt;/div&gt;&lt;!-- #main --&gt;
</span><span class="lines">@@ -15,7 +15,12 @@
</span><span class="cx">         &lt;div id=&quot;footer&quot; role=&quot;contentinfo&quot;&gt;
</span><span class="cx">                 &lt;div id=&quot;colophon&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php get_sidebar( 'footer' ); ?&gt;
</del><ins>+&lt;?php
+        /* A sidebar in the footer? Yep. You can can customize
+         * your footer with four columns of widgets.
+         */
+        get_sidebar( 'footer' );
+?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;site-info&quot;&gt;
</span><span class="cx">                                 &lt;a href=&quot;&lt;?php echo home_url( '/' ) ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/header.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/header.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/header.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -6,11 +6,9 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><del>-?&gt;
-
-&lt;!DOCTYPE html&gt;
</del><ins>+?&gt;&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html &lt;?php language_attributes(); ?&gt;&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">         &lt;meta charset=&quot;&lt;?php bloginfo( 'charset' ); ?&gt;&quot; /&gt;
</span><span class="lines">@@ -46,12 +44,12 @@
</span><span class="cx">         &lt;div id=&quot;header&quot;&gt;
</span><span class="cx">                 &lt;div id=&quot;masthead&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;branding&quot; role=&quot;banner&quot;&gt;
</span><del>-                                &lt;?php $heading_tag = ( is_home() || is_front_page() )? 'h1' : 'div'; ?&gt;
</del><ins>+                                &lt;?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?&gt;
</ins><span class="cx">                                 &lt;&lt;?php echo $heading_tag; ?&gt; id=&quot;site-title&quot;&gt;
</span><span class="cx">                                         &lt;span&gt;
</span><span class="cx">                                                 &lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;
</span><span class="cx">                                         &lt;/span&gt;
</span><del>-                                &lt;/&lt;?php echo $heading_tag; ?&gt;&gt;                                
</del><ins>+                                &lt;/&lt;?php echo $heading_tag; ?&gt;&gt;
</ins><span class="cx">                                 &lt;div id=&quot;site-description&quot;&gt;&lt;?php bloginfo( 'description' ); ?&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenindexphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/index.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/index.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/index.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx">  
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenloopphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/loop.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/loop.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/loop.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -26,16 +26,31 @@
</span><span class="cx">         &lt;div id=&quot;post-0&quot; class=&quot;post error404 not-found&quot;&gt;
</span><span class="cx">                 &lt;h1 class=&quot;entry-title&quot;&gt;&lt;?php _e( 'Not Found', 'twentyten' ); ?&gt;&lt;/h1&gt;
</span><span class="cx">                 &lt;div class=&quot;entry-content&quot;&gt;
</span><del>-                        &lt;p&gt;&lt;?php _e( 'Apologies, but no results were found for the requested Archive. Perhaps searching will help find a related post.', 'twentyten' ); ?&gt;&lt;/p&gt;
</del><ins>+                        &lt;p&gt;&lt;?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?&gt;&lt;/p&gt;
</ins><span class="cx">                         &lt;?php get_search_form(); ?&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- .entry-content --&gt;
</span><span class="cx">         &lt;/div&gt;&lt;!-- #post-0 --&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php /* Start the Loop */ ?&gt;
</del><ins>+&lt;?php
+        /* Start the Loop.
+         *
+         * In Twenty Ten we use the same loop in multiple contexts.
+         * It is broken into three main parts: when we're displaying
+         * posts that are in the gallery category, when we're displaying
+         * posts in the asides category, and finally all other posts.
+         *
+         * Additionally, we sometimes check for whether we are on an
+         * archive page, a search page, etc., allowing for small differences
+         * in the loop on each template without actually duplicating
+         * the rest of the loop that is shared.
+         *
+         * Without further ado, the loop:
+         */ ?&gt;
</ins><span class="cx"> &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php /* How to Display posts in the Gallery Category */ ?&gt;
</del><ins>+&lt;?php /* How to display posts in the Gallery category. */ ?&gt;
+
</ins><span class="cx">         &lt;?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?&gt;
</span><span class="cx">                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx">                         &lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
</span><span class="lines">@@ -71,17 +86,19 @@
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php /* How to display posts in the asides category */ ?&gt;
</span><ins>+
</ins><span class="cx">         &lt;?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?&gt;
</span><span class="cx">                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><del>-        &lt;?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives &amp; search ?&gt;
</del><ins>+
+                &lt;?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;entry-summary&quot;&gt;
</span><del>-                                &lt;?php the_excerpt( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
</del><ins>+                                &lt;?php the_excerpt(); ?&gt;
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- .entry-summary --&gt;
</span><del>-        &lt;?php else : ?&gt;
</del><ins>+                &lt;?php else : ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;entry-content&quot;&gt;
</span><span class="cx">                                 &lt;?php the_content( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- .entry-content --&gt;
</span><del>-        &lt;?php endif; ?&gt;
</del><ins>+                &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;entry-utility&quot;&gt;
</span><span class="cx">                                 &lt;?php twentyten_posted_on(); ?&gt;
</span><span class="lines">@@ -89,9 +106,10 @@
</span><span class="cx">                                 &lt;span class=&quot;comments-link&quot;&gt;&lt;?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?&gt;&lt;/span&gt;
</span><span class="cx">                                 &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), '&lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;edit-link&quot;&gt;', '&lt;/span&gt;' ); ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #entry-utility --&gt;
</span><del>-                &lt;/div&gt;&lt;!-- #post-&lt;?php the_ID(); ?&gt; --&gt;
</del><ins>+                &lt;/div&gt;&lt;!-- #post-(id) --&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php /* How to display all other posts */ ?&gt;
</del><ins>+&lt;?php /* How to display all other posts. */ ?&gt;
+
</ins><span class="cx">         &lt;?php else : ?&gt;
</span><span class="cx">                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx">                         &lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
</span><span class="lines">@@ -100,7 +118,7 @@
</span><span class="cx">                                 &lt;?php twentyten_posted_on(); ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- .entry-meta --&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives &amp; search ?&gt;
</del><ins>+        &lt;?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;entry-summary&quot;&gt;
</span><span class="cx">                                 &lt;?php the_excerpt( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- .entry-summary --&gt;
</span><span class="lines">@@ -114,7 +132,7 @@
</span><span class="cx">                         &lt;div class=&quot;entry-utility&quot;&gt;
</span><span class="cx">                                 &lt;?php if ( count( get_the_category() ) ) : ?&gt;
</span><span class="cx">                                         &lt;span class=&quot;cat-links&quot;&gt;
</span><del>-                                                &lt;span class=&quot;entry-utility-prep entry-utility-prep-cat-links&quot;&gt;&lt;?php printf( __('Posted in %s', 'twentyten' ), '&lt;/span&gt; '.get_the_category_list( ', ' ) ); ?&gt;
</del><ins>+                                                &lt;span class=&quot;entry-utility-prep entry-utility-prep-cat-links&quot;&gt;&lt;?php printf( __('Posted in %s', 'twentyten' ), '&lt;/span&gt; ' . get_the_category_list( ', ' ) ); ?&gt;
</ins><span class="cx">                                         &lt;/span&gt;
</span><span class="cx">                                         &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;
</span><span class="cx">                                 &lt;?php endif; ?&gt;
</span><span class="lines">@@ -134,9 +152,10 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php comments_template( '', true ); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php endif; // if different categories queried ?&gt;
-&lt;?php endwhile; ?&gt;
</del><ins>+        &lt;?php endif; // This was the if statement that broke the loop into three parts based on categories. ?&gt;
</ins><span class="cx"> 
</span><ins>+&lt;?php endwhile; // End the loop. Whew. ?&gt;
+
</ins><span class="cx"> &lt;?php /* Display navigation to next/previous pages when applicable */ ?&gt;
</span><span class="cx"> &lt;?php if (  $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;
</span><span class="cx">                                 &lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenonecolumnpagephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/onecolumn-page.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/onecolumn-page.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/onecolumn-page.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -3,20 +3,22 @@
</span><span class="cx">  * Template Name: One column, no sidebar
</span><span class="cx">  *
</span><span class="cx">  * A custom page template without sidebar.
</span><del>- * Selectable from a dropdown menu on the edit page screen.
</del><span class="cx">  *
</span><ins>+ * The &quot;Template Name:&quot; bit above allows this to be selectable
+ * from a dropdown menu on the edit page screen.
+ *
</ins><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php get_header(); ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;div id=&quot;container&quot; class=&quot;onecolumn&quot;&gt;
</del><ins>+                &lt;div id=&quot;container&quot; class=&quot;one-column&quot;&gt;
</ins><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+&lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx">                                         &lt;h1 class=&quot;entry-title&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
</span><span class="lines">@@ -29,6 +31,8 @@
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php comments_template( '', true ); ?&gt;
</span><span class="cx"> 
</span><ins>+&lt;?php endwhile; ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #content --&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #container --&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenpagephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/page.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/page.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/page.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">                 &lt;div id=&quot;container&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+&lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx">                                         &lt;?php if ( is_front_page() ) { ?&gt;
</span><span class="lines">@@ -36,6 +36,8 @@
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php comments_template( '', true ); ?&gt;
</span><span class="cx"> 
</span><ins>+&lt;?php endwhile; ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #content --&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #container --&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensearchphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/search.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/search.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/search.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensidebarfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/sidebar-footer.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/sidebar-footer.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/sidebar-footer.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,25 +4,33 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-        if (
-                is_active_sidebar( 'first-footer-widget-area' )  ||
-                is_active_sidebar( 'second-footer-widget-area' ) ||
-                is_active_sidebar( 'third-footer-widget-area' )  ||
-                is_active_sidebar( 'fourth-footer-widget-area' )
-        ) :
</del><ins>+        /* The footer widget area is triggered if any of the areas
+         * have widgets. So let's check that first.
+         *
+         * If none of the sidebars have widgets, then let's bail early.
+         */
+        if (   ! is_active_sidebar( 'first-footer-widget-area'  )
+                &amp;&amp; ! is_active_sidebar( 'second-footer-widget-area' )
+                &amp;&amp; ! is_active_sidebar( 'third-footer-widget-area'  )
+                &amp;&amp; ! is_active_sidebar( 'fourth-footer-widget-area' )
+        )
+                return;
+        // If we get this far, we have widgets. Let do this.
</ins><span class="cx"> ?&gt;
</span><ins>+
</ins><span class="cx">                         &lt;div id=&quot;footer-widget-area&quot; role=&quot;complementary&quot;&gt;
</span><ins>+
</ins><span class="cx"> &lt;?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?&gt;
</span><del>-                                        &lt;div id=&quot;first&quot; class=&quot;widget-area&quot;&gt;
-                                                &lt;ul class=&quot;xoxo&quot;&gt;
-                                                        &lt;?php dynamic_sidebar( 'first-footer-widget-area' ); ?&gt;
-                                                &lt;/ul&gt;
-                                        &lt;/div&gt;&lt;!-- #first .widget-area --&gt;
</del><ins>+                                &lt;div id=&quot;first&quot; class=&quot;widget-area&quot;&gt;
+                                        &lt;ul class=&quot;xoxo&quot;&gt;
+                                                &lt;?php dynamic_sidebar( 'first-footer-widget-area' ); ?&gt;
+                                        &lt;/ul&gt;
+                                &lt;/div&gt;&lt;!-- #first .widget-area --&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?&gt;
</span><span class="lines">@@ -50,4 +58,3 @@
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #footer-widget-area --&gt;
</span><del>-&lt;?php endif; ?&gt;
</del></span></pre></div>
<a id="trunkwpcontentthemestwentytensidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/sidebar.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/sidebar.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/sidebar.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,13 +4,21 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;primary&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
</span><span class="cx">                         &lt;ul class=&quot;xoxo&quot;&gt;
</span><del>-&lt;?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?&gt;
</del><ins>+
+&lt;?php
+        /* When we call the dynamic_sidebar() function, it'll spit out
+         * the widgets for that widget area. If it instead returns false,
+         * then the sidebar simply doesn't exist, so we'll hard-code in
+         * some default sidebar stuff just in case.
+         */
+        if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?&gt;
+        
</ins><span class="cx">                         &lt;li id=&quot;search&quot; class=&quot;widget-container widget_search&quot;&gt;
</span><span class="cx">                                 &lt;?php get_search_form(); ?&gt;
</span><span class="cx">                         &lt;/li&gt;
</span><span class="lines">@@ -30,14 +38,19 @@
</span><span class="cx">                                         &lt;?php wp_meta(); ?&gt;
</span><span class="cx">                                 &lt;/ul&gt;
</span><span class="cx">                         &lt;/li&gt;
</span><del>-&lt;?php endif; // end primary widget area ?&gt;
</del><ins>+
+                &lt;?php endif; // end primary widget area ?&gt;
</ins><span class="cx">                         &lt;/ul&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #primary .widget-area --&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?&gt;
</del><ins>+&lt;?php
+        // A second sidebar for widgets, just because.
+        if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?&gt;
+
</ins><span class="cx">                 &lt;div id=&quot;secondary&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
</span><span class="cx">                         &lt;ul class=&quot;xoxo&quot;&gt;
</span><span class="cx">                                 &lt;?php dynamic_sidebar( 'secondary-widget-area' ); ?&gt;
</span><span class="cx">                         &lt;/ul&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #secondary .widget-area --&gt;
</span><ins>+
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensinglephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/single.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/single.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/single.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx">                                                 &lt;?php twentyten_posted_in(); ?&gt;
</span><span class="cx">                                                 &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), '&lt;span class=&quot;edit-link&quot;&gt;', '&lt;/span&gt;' ); ?&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-utility --&gt;
</span><del>-                                &lt;/div&gt;&lt;!-- #post-&lt;?php the_ID(); ?&gt; --&gt;
</del><ins>+                                &lt;/div&gt;&lt;!-- #post-(id) --&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;
</span><span class="cx">                                         &lt;div class=&quot;nav-previous&quot;&gt;&lt;?php previous_post_link( '%link', '&lt;span class=&quot;meta-nav&quot;&gt;' . _x( '&amp;larr;', 'Previous post link', 'twentyten' ) . '&lt;/span&gt; %title' ); ?&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenstylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/style.css (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/style.css        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/style.css        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx"> DESCRIPTION: One centered column with no sidebar
</span><span class="cx"> */
</span><span class="cx"> 
</span><del>-.onecolumn #content {
</del><ins>+.one-column #content {
</ins><span class="cx">         margin: 0 auto;
</span><span class="cx">         width: 640px;
</span><span class="cx"> }
</span><span class="lines">@@ -1303,7 +1303,7 @@
</span><span class="cx">                 margin: 0;
</span><span class="cx">         }
</span><span class="cx">         #content,
</span><del>-        .onecolumn #content {
</del><ins>+        .one-column #content {
</ins><span class="cx">                 width: 100%;
</span><span class="cx">                 margin: 24pt 0 0;
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytentagphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/tag.php (14707 => 14708)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/tag.php        2010-05-17 06:32:03 UTC (rev 14707)
+++ trunk/wp-content/themes/twentyten/tag.php        2010-05-17 06:36:11 UTC (rev 14708)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><del>- * @since 3.0.0
</del><ins>+ * @since Twenty Ten 1.0
</ins><span class="cx">  */
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -13,14 +13,10 @@
</span><span class="cx">                 &lt;div id=&quot;container&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php the_post(); ?&gt;
</del><ins>+                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php
+                                        printf( __( 'Tag Archives: %s', 'twentyten' ), '&lt;span&gt;' . single_tag_title( '', false ) . '&lt;/span&gt;' );
+                                ?&gt;&lt;/h1&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;
-                                        &lt;?php printf( __( 'Tag Archives: %s', 'twentyten' ), '&lt;span&gt;' . single_tag_title( '', false ) . '&lt;/span&gt;' ); ?&gt;
-                                &lt;/h1&gt;
-
-&lt;?php rewind_posts(); ?&gt;
-
</del><span class="cx"> &lt;?php
</span><span class="cx"> /* Run the loop for the tag archive to output the posts
</span><span class="cx">  * If you want to overload this in a child theme then include a file
</span></span></pre>
</div>
</div>

</body>
</html>