<!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>[14786] trunk/wp-content/themes/twentyten: In Twenty Ten,
  final pass on inline docs et al.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14786">14786</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-21 18:56:27 +0000 (Fri, 21 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>In Twenty Ten, final pass on inline docs et al. props jorbin, zeo. fixes <a href="http://trac.wordpress.org/ticket/12695">#12695</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<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="#trunkwpcontentthemestwentytencommentsphp">trunk/wp-content/themes/twentyten/comments.php</a></li>
<li><a href="#trunkwpcontentthemestwentyteneditorstylertlcss">trunk/wp-content/themes/twentyten/editor-style-rtl.css</a></li>
<li><a href="#trunkwpcontentthemestwentyteneditorstylecss">trunk/wp-content/themes/twentyten/editor-style.css</a></li>
<li><a href="#trunkwpcontentthemestwentytenfooterphp">trunk/wp-content/themes/twentyten/footer.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenfunctionsphp">trunk/wp-content/themes/twentyten/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenheaderphp">trunk/wp-content/themes/twentyten/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenloopphp">trunk/wp-content/themes/twentyten/loop.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensearchphp">trunk/wp-content/themes/twentyten/search.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensinglephp">trunk/wp-content/themes/twentyten/single.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytenattachmentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/attachment.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/attachment.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/attachment.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx">                                                                                 $metadata['height']
</span><span class="cx">                                                                         )
</span><span class="cx">                                                                 );
</span><del>-                                                        }                                                        
</del><ins>+                                                        }
</ins><span class="cx">                                                 ?&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-meta --&gt;
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx"> &lt;?php else : ?&gt;
</span><span class="cx">                                                 &lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_the_title() ); ?&gt;&quot; rel=&quot;attachment&quot;&gt;&lt;?php echo basename( get_permalink() ); ?&gt;&lt;/a&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><del>-                                                &lt;/div&gt;
</del><ins>+                                                &lt;/div&gt;&lt;!-- .entry-attachment --&gt;
</ins><span class="cx">                                                 &lt;div class=&quot;entry-caption&quot;&gt;&lt;?php if ( !empty( $post-&gt;post_excerpt ) ) the_excerpt(); ?&gt;&lt;/div&gt;
</span><span class="cx"> 
</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></pre></div>
<a id="trunkwpcontentthemestwentytenauthorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/author.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/author.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/author.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -32,12 +32,12 @@
</span><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><del>-                                                &lt;/div&gt;&lt;!-- #author-avatar         --&gt;
</del><ins>+                                                &lt;/div&gt;&lt;!-- #author-avatar --&gt;
</ins><span class="cx">                                                 &lt;div id=&quot;author-description&quot;&gt;
</span><span class="cx">                                                         &lt;h2&gt;&lt;?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?&gt;&lt;/h2&gt;
</span><span class="cx">                                                         &lt;?php the_author_meta( 'description' ); ?&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- #author-description        --&gt;
</span><del>-                                        &lt;/div&gt;&lt;!-- .entry-author-info --&gt;
</del><ins>+                                        &lt;/div&gt;&lt;!-- #entry-author-info --&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytencommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/comments.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/comments.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/comments.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">                         &lt;div id=&quot;comments&quot;&gt;
</span><span class="cx"> &lt;?php if ( post_password_required() ) : ?&gt;
</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><del>-                        &lt;/div&gt;&lt;!-- .comments --&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- #comments --&gt;
</ins><span class="cx"> &lt;?php
</span><span class="cx">                 /* Stop the rest of comments.php from being processed,
</span><span class="cx">                  * but don't kill the script entirely -- we still have
</span><span class="lines">@@ -40,7 +40,7 @@
</span><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><del>-                        &lt;/div&gt;
</del><ins>+                        &lt;/div&gt; &lt;!-- .navigation --&gt;
</ins><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><span class="lines">@@ -59,7 +59,7 @@
</span><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><del>-                        &lt;/div&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- .navigation --&gt;
</ins><span class="cx"> &lt;?php endif; // check for comment navigation ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php else : // or, if we don't have comments:
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">         if ( ! comments_open() ) :
</span><span class="cx"> ?&gt;
</span><span class="cx">         &lt;p class=&quot;nocomments&quot;&gt;&lt;?php _e( 'Comments are closed.', 'twentyten' ); ?&gt;&lt;/p&gt;
</span><del>-&lt;?php endif; // end ! comments_opened() ?&gt;
</del><ins>+&lt;?php endif; // end ! comments_open() ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php endif; // end have_comments() ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyteneditorstylertlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/editor-style-rtl.css (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/editor-style-rtl.css        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/editor-style-rtl.css        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -1,3 +1,9 @@
</span><ins>+/*
+Theme Name: Twenty Ten
+*/
+/*
+Used to style the TinyMCE editor.
+*/
</ins><span class="cx"> html .mceContentBody{
</span><span class="cx">         direction:rtl;
</span><span class="cx">         unicode-bidi:embed;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyteneditorstylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/editor-style.css (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/editor-style.css        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/editor-style.css        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -1,3 +1,9 @@
</span><ins>+/*
+Theme Name: Twenty Ten
+*/
+/*
+Used to style the TinyMCE editor.
+*/
</ins><span class="cx"> html .mceContentBody {
</span><span class="cx">         max-width:640px;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/footer.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/footer.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/footer.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -26,7 +26,7 @@
</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 class="cx">                                         &lt;?php bloginfo( 'name' ); ?&gt;
</span><span class="cx">                                 &lt;/a&gt;
</span><del>-                        &lt;/div&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- #site-info --&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;site-generator&quot;&gt;
</span><span class="cx">                                 &lt;?php do_action( 'twentyten_credits' ); ?&gt;
</span><span class="lines">@@ -34,14 +34,20 @@
</span><span class="cx">                                                 title=&quot;&lt;?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?&gt;&quot; rel=&quot;generator&quot;&gt;
</span><span class="cx">                                         &lt;?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?&gt;
</span><span class="cx">                                 &lt;/a&gt;
</span><del>-                        &lt;/div&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- #site-generator --&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #colophon --&gt;
</span><span class="cx">         &lt;/div&gt;&lt;!-- #footer --&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;&lt;!-- #wrapper --&gt;
</span><span class="cx"> 
</span><del>-&lt;?php wp_footer(); ?&gt;
</del><ins>+&lt;?php
+        /* Always have wp_footer() just before the closing &lt;/body&gt;
+         * tag of your theme, or you will break many plugins, which
+         * generally use this hook to reference JavaScript files.
+         */
</ins><span class="cx"> 
</span><ins>+        wp_footer();
+?&gt;
</ins><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/functions.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/functions.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/functions.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx">  * }
</span><span class="cx">  * &lt;/code&gt;
</span><span class="cx">  *
</span><del>- * For more information on hooks, see http://codex.wordpress.org/Plugin_API.
</del><ins>+ * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.
</ins><span class="cx">  *
</span><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><span class="lines">@@ -110,7 +110,8 @@
</span><span class="cx">         define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );
</span><span class="cx"> 
</span><span class="cx">         // We'll be using post thumbnails for custom header images on posts and pages.
</span><del>-        // We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit).
</del><ins>+        // We want them to be 940 pixels wide by 198 pixels tall.
+        // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
</ins><span class="cx">         set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
</span><span class="cx"> 
</span><span class="cx">         // Don't support text inside the header image.
</span><span class="lines">@@ -133,43 +134,43 @@
</span><span class="cx">                 'cherryblossom' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/cherryblossoms.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/cherryblossoms-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Cherry Blossoms', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'concave' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/concave.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/concave-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Concave', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'fern' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/fern.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/fern-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Fern', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'forestfloor' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/forestfloor.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/forestfloor-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Forest Floor', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'inkwell' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/inkwell.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/inkwell-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Inkwell', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'path' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/path.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/path-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Path', 'twentyten' )
</span><span class="cx">                 ),
</span><span class="cx">                 'sunset' =&gt; array(
</span><span class="cx">                         'url' =&gt; '%s/images/headers/sunset.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/sunset-thumbnail.jpg',
</span><del>-                        /* translators: header image description */                        
</del><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Sunset', 'twentyten' )
</span><span class="cx">                 )
</span><span class="cx">         ) );
</span><span class="lines">@@ -288,7 +289,7 @@
</span><span class="cx">                 &lt;div class=&quot;comment-author vcard&quot;&gt;
</span><span class="cx">                         &lt;?php echo get_avatar( $comment, 40 ); ?&gt;
</span><span class="cx">                         &lt;?php printf( __( '%s &lt;span class=&quot;says&quot;&gt;says:&lt;/span&gt;', 'twentyten' ), sprintf( '&lt;cite class=&quot;fn&quot;&gt;%s&lt;/cite&gt;', get_comment_author_link() ) ); ?&gt;
</span><del>-                &lt;/div&gt;
</del><ins>+                &lt;/div&gt;&lt;!-- .comment-author .vcard --&gt;
</ins><span class="cx">                 &lt;?php if ( $comment-&gt;comment_approved == '0' ) : ?&gt;
</span><span class="cx">                         &lt;em&gt;&lt;?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?&gt;&lt;/em&gt;
</span><span class="cx">                         &lt;br /&gt;
</span><span class="lines">@@ -299,14 +300,14 @@
</span><span class="cx">                                 /* translators: 1: date, 2: time */
</span><span class="cx">                                 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?&gt;&lt;/a&gt;&lt;?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
</span><span class="cx">                         ?&gt;
</span><del>-                &lt;/div&gt;
</del><ins>+                &lt;/div&gt;&lt;!-- .comment-meta .commentmetadata --&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;comment-body&quot;&gt;&lt;?php comment_text(); ?&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;reply&quot;&gt;
</span><span class="cx">                         &lt;?php comment_reply_link( array_merge( $args, array( 'depth' =&gt; $depth, 'max_depth' =&gt; $args['max_depth'] ) ) ); ?&gt;
</span><del>-                &lt;/div&gt;
-        &lt;/div&gt;
</del><ins>+                &lt;/div&gt;&lt;!-- .reply --&gt;
+        &lt;/div&gt;&lt;!-- #comment-##  --&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;?php else : ?&gt;
</span><span class="cx">         &lt;li class=&quot;post pingback&quot;&gt;
</span><span class="lines">@@ -325,7 +326,7 @@
</span><span class="cx">  * @uses register_sidebar
</span><span class="cx">  */
</span><span class="cx"> function twentyten_widgets_init() {
</span><del>-        // Area 1
</del><ins>+        // Area 1, located at the top of the sidebar.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'Primary Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'primary-widget-area',
</span><span class="lines">@@ -336,7 +337,7 @@
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        // Area 2
</del><ins>+        // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'Secondary Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'secondary-widget-area',
</span><span class="lines">@@ -347,7 +348,7 @@
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        // Area 3
</del><ins>+        // Area 3, located in the footer. Empty by default.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'First Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'first-footer-widget-area',
</span><span class="lines">@@ -358,7 +359,7 @@
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        // Area 4
</del><ins>+        // Area 4, located in the footer. Empty by default.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'Second Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'second-footer-widget-area',
</span><span class="lines">@@ -369,7 +370,7 @@
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        // Area 5
</del><ins>+        // Area 5, located in the footer. Empty by default.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'Third Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'third-footer-widget-area',
</span><span class="lines">@@ -380,7 +381,7 @@
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        // Area 6
</del><ins>+        // Area 6, located in the footer. Empty by default.
</ins><span class="cx">         register_sidebar( array(
</span><span class="cx">                 'name' =&gt; __( 'Fourth Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'fourth-footer-widget-area',
</span><span class="lines">@@ -422,13 +423,12 @@
</span><span class="cx">                         esc_attr( get_the_time() ),
</span><span class="cx">                         get_the_date()
</span><span class="cx">                 ),
</span><del>-                sprintf( '&lt;/span&gt; &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;', 
</del><ins>+                sprintf( '&lt;/span&gt; &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;',
</ins><span class="cx">                         get_author_posts_url( get_the_author_meta( 'ID' ) ),
</span><span class="cx">                         sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
</span><span class="cx">                         get_the_author()
</span><span class="cx">                 )
</span><span class="cx">         );
</span><del>-        
</del><span class="cx"> }
</span><span class="cx"> endif;
</span><span class="cx"> 
</span><span class="lines">@@ -453,6 +453,6 @@
</span><span class="cx">                 $tag_list,
</span><span class="cx">                 get_permalink(),
</span><span class="cx">                 the_title_attribute( 'echo=0' )
</span><del>-        );        
</del><ins>+        );
</ins><span class="cx"> }
</span><span class="cx"> endif;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/header.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/header.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/header.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -13,30 +13,44 @@
</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="cx">         &lt;title&gt;
</span><del>-        &lt;?php
-                if ( is_single() ) {
</del><ins>+        &lt;?php // Returns the title based on what is being viewed
+                if ( is_single() ) { // single posts
</ins><span class="cx">                         single_post_title(); echo ' | '; bloginfo( 'name' );
</span><ins>+                // The home page or, if using a static front page, the blog posts page.
</ins><span class="cx">                 } elseif ( is_home() || is_front_page() ) {
</span><del>-                        bloginfo( 'name' ); 
-                        if( get_bloginfo( 'description' ) ) 
-                                echo ' | ' ; bloginfo( 'description' ); 
</del><ins>+                        bloginfo( 'name' );
+                        if( get_bloginfo( 'description' ) )
+                                echo ' | ' ; bloginfo( 'description' );
</ins><span class="cx">                         twentyten_the_page_number();
</span><del>-                } elseif ( is_page() ) {
</del><ins>+                } elseif ( is_page() ) { // WordPress Pages
</ins><span class="cx">                         single_post_title( '' ); echo ' | '; bloginfo( 'name' );
</span><del>-                } elseif ( is_search() ) {
</del><ins>+                } elseif ( is_search() ) { // Search results
</ins><span class="cx">                         printf( __( 'Search results for %s', 'twentyten' ), '&quot;'.get_search_query().'&quot;' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
</span><del>-                } elseif ( is_404() ) {
</del><ins>+                } elseif ( is_404() ) {  // 404 (Not Found)
</ins><span class="cx">                         _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
</span><del>-                } else {
</del><ins>+                } else { // Otherwise:
</ins><span class="cx">                         wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
</span><span class="cx">                 }
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;/title&gt;
</span><span class="cx">         &lt;link rel=&quot;profile&quot; href=&quot;http://gmpg.org/xfn/11&quot; /&gt;
</span><span class="cx">         &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;&quot; /&gt;
</span><del>-        &lt;?php if ( is_singular() &amp;&amp; get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?&gt;
</del><span class="cx">         &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( 'pingback_url' ); ?&gt;&quot; /&gt;
</span><del>-        &lt;?php wp_head(); ?&gt;
</del><ins>+&lt;?php
+        /* We add some JavaScript to pages with the comment form
+         * to support sites with threaded comments (when in use).
+         */
+        if ( is_singular() &amp;&amp; get_option( 'thread_comments' ) )
+                wp_enqueue_script( 'comment-reply' );
+
+        /* Always have wp_head() just before the closing &lt;/head&gt;
+         * tag of your theme, or you will break many plugins, which
+         * generally use this hook to add elements to &lt;head&gt; such
+         * as styles, scripts, and meta tags.
+         */
+
+        wp_head();
+?&gt;
</ins><span class="cx"> &lt;/head&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;body &lt;?php body_class(); ?&gt;&gt;
</span><span class="lines">@@ -66,7 +80,9 @@
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #branding --&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;access&quot; role=&quot;navigation&quot;&gt;
</span><ins>+                          &lt;?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?&gt;
</ins><span class="cx">                                 &lt;div class=&quot;skip-link screen-reader-text&quot;&gt;&lt;a href=&quot;#content&quot; title=&quot;&lt;?php esc_attr_e( 'Skip to content', 'twentyten' ); ?&gt;&quot;&gt;&lt;?php _e( 'Skip to content', 'twentyten' ); ?&gt;&lt;/a&gt;&lt;/div&gt;
</span><ins>+                                &lt;?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?&gt;
</ins><span class="cx">                                 &lt;?php wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) ); ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #access --&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #masthead --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenloopphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/loop.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/loop.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/loop.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -7,6 +7,12 @@
</span><span class="cx">  * http://codex.wordpress.org/Template_Tags to understand
</span><span class="cx">  * the tags used in it.
</span><span class="cx">  *
</span><ins>+ * This can be overridden in child themes with loop.php or
+ * loop-template.php, where 'template' is the loop context
+ * requested by a template. For example, loop-index.php would
+ * be used if it exists and we ask for the loop with:
+ * &lt;code&gt;get_template_part( 'loop', 'index' );&lt;/code&gt;
+ *
</ins><span class="cx">  * @package WordPress
</span><span class="cx">  * @subpackage Twenty_Ten
</span><span class="cx">  * @since Twenty Ten 1.0
</span><span class="lines">@@ -68,7 +74,7 @@
</span><span class="cx">         $image_img_tag = wp_get_attachment_image( $image-&gt;ID, 'thumbnail' );
</span><span class="cx"> ?&gt;
</span><span class="cx">                                         &lt;a class=&quot;size-thumbnail&quot; href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php echo $image_img_tag; ?&gt;&lt;/a&gt;
</span><del>-                                &lt;/div&gt;
</del><ins>+                                &lt;/div&gt;&lt;!-- .gallery-thumb --&gt;
</ins><span class="cx">                                 &lt;p&gt;&lt;em&gt;&lt;?php printf( __( 'This gallery contains &lt;a %1$s&gt;%2$s photos&lt;/a&gt;.', 'twentyten' ),
</span><span class="cx">                                                 'href=&quot;' . get_permalink() . '&quot; title=&quot;' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '&quot; rel=&quot;bookmark&quot;',
</span><span class="cx">                                                 $total_images
</span><span class="lines">@@ -82,8 +88,8 @@
</span><span class="cx">                                 &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;
</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><del>-                        &lt;/div&gt;&lt;!-- #entry-utility --&gt;
-                &lt;/div&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- .entry-utility --&gt;
+                &lt;/div&gt;&lt;!-- #post-## --&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php /* How to display posts in the asides category */ ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -105,8 +111,8 @@
</span><span class="cx">                                 &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;
</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><del>-                        &lt;/div&gt;&lt;!-- #entry-utility --&gt;
-                &lt;/div&gt;&lt;!-- #post-(id) --&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- .entry-utility --&gt;
+                &lt;/div&gt;&lt;!-- #post-## --&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php /* How to display all other posts. */ ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -147,7 +153,7 @@
</span><span class="cx">                                 &lt;?php endif; ?&gt;
</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><del>-                        &lt;/div&gt;&lt;!-- #entry-utility --&gt;
</del><ins>+                        &lt;/div&gt;&lt;!-- .entry-utility --&gt;
</ins><span class="cx">                 &lt;/div&gt;&lt;!-- #post-&lt;?php the_ID(); ?&gt; --&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php comments_template( '', true ); ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensearchphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/search.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/search.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/search.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">                                                 &lt;p&gt;&lt;?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?&gt;&lt;/p&gt;
</span><span class="cx">                                                 &lt;?php get_search_form(); ?&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-content --&gt;
</span><del>-                                &lt;/div&gt;
</del><ins>+                                &lt;/div&gt;&lt;!-- #post-0 --&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #content --&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #container --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensinglephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/single.php (14785 => 14786)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/single.php        2010-05-21 18:19:56 UTC (rev 14785)
+++ trunk/wp-content/themes/twentyten/single.php        2010-05-21 18:56:27 UTC (rev 14786)
</span><span class="lines">@@ -46,14 +46,14 @@
</span><span class="cx">                                                                 &lt;/a&gt;
</span><span class="cx">                                                         &lt;/div&gt;&lt;!-- #author-link        --&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- #author-description --&gt;
</span><del>-                                        &lt;/div&gt;&lt;!-- .entry-author-info --&gt;
</del><ins>+                                        &lt;/div&gt;&lt;!-- #entry-author-info --&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry-utility&quot;&gt;
</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-(id) --&gt;
</del><ins>+                                &lt;/div&gt;&lt;!-- #post-## --&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>
</div>

</body>
</html>