<!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>[16480] trunk/wp-content/themes/twentyten: Twenty Ten code cleanups.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/16480">16480</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-11-19 05:37:47 +0000 (Fri, 19 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Twenty Ten code cleanups. props lancewillett, fixes <a href="http://trac.wordpress.org/ticket/15476">#15476</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentytenarchivephp">trunk/wp-content/themes/twentyten/archive.php</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="#trunkwpcontentthemestwentytenindexphp">trunk/wp-content/themes/twentyten/index.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenloopattachmentphp">trunk/wp-content/themes/twentyten/loop-attachment.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenloopphp">trunk/wp-content/themes/twentyten/loop.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenrtlcss">trunk/wp-content/themes/twentyten/rtl.css</a></li>
<li><a href="#trunkwpcontentthemestwentytensidebarphp">trunk/wp-content/themes/twentyten/sidebar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytenarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/archive.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/archive.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/archive.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -32,9 +32,9 @@
</span><span class="cx"> &lt;?php if ( is_day() ) : ?&gt;
</span><span class="cx">                                 &lt;?php printf( __( 'Daily Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date() ); ?&gt;
</span><span class="cx"> &lt;?php elseif ( is_month() ) : ?&gt;
</span><del>-                                &lt;?php printf( __( 'Monthly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('F Y') ); ?&gt;
</del><ins>+                                &lt;?php printf( __( 'Monthly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date( 'F Y' ) ); ?&gt;
</ins><span class="cx"> &lt;?php elseif ( is_year() ) : ?&gt;
</span><del>-                                &lt;?php printf( __( 'Yearly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('Y') ); ?&gt;
</del><ins>+                                &lt;?php printf( __( 'Yearly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date( 'Y' ) ); ?&gt;
</ins><span class="cx"> &lt;?php else : ?&gt;
</span><span class="cx">                                 &lt;?php _e( 'Blog Archives', 'twentyten' ); ?&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/footer.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/footer.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/footer.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -23,17 +23,14 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;site-info&quot;&gt;
</span><del>-                                &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;
</del><ins>+                                &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;
</ins><span class="cx">                                         &lt;?php bloginfo( 'name' ); ?&gt;
</span><span class="cx">                                 &lt;/a&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #site-info --&gt;
</span><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><del>-                                &lt;a href=&quot;&lt;?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?&gt;&quot;
-                                                title=&quot;&lt;?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?&gt;&quot; rel=&quot;generator&quot;&gt;
-                                        &lt;?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?&gt;
-                                &lt;/a&gt;
</del><ins>+                                &lt;a href=&quot;&lt;?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?&gt;&quot; rel=&quot;generator&quot;&gt;&lt;?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?&gt;&lt;/a&gt;
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #site-generator --&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #colophon --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/functions.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/functions.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/functions.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -335,7 +335,7 @@
</span><span class="cx">                 case 'trackback' :
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;li class=&quot;post pingback&quot;&gt;
</span><del>-                &lt;p&gt;&lt;?php _e( 'Pingback:', 'twentyten' ); ?&gt; &lt;?php comment_author_link(); ?&gt;&lt;?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?&gt;&lt;/p&gt;
</del><ins>+                &lt;p&gt;&lt;?php _e( 'Pingback:', 'twentyten' ); ?&gt; &lt;?php comment_author_link(); ?&gt;&lt;?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?&gt;&lt;/p&gt;
</ins><span class="cx">         &lt;?php
</span><span class="cx">                         break;
</span><span class="cx">         endswitch;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenindexphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/index.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/index.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/index.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * This is the most generic template file in a WordPress theme
</span><span class="cx">  * and one of the two required files for a theme (the other being style.css).
</span><del>- * It is used to display a page when nothing more specific matches a query. 
</del><ins>+ * It is used to display a page when nothing more specific matches a query.
</ins><span class="cx">  * E.g., it puts together the home page when no home.php file exists.
</span><span class="cx">  * Learn more: http://codex.wordpress.org/Template_Hierarchy
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenloopattachmentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/loop-attachment.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/loop-attachment.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/loop-attachment.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry-meta&quot;&gt;
</span><span class="cx">                                                 &lt;?php
</span><del>-                                                        printf(__('&lt;span class=&quot;%1$s&quot;&gt;By&lt;/span&gt; %2$s', 'twentyten'),
</del><ins>+                                                        printf( __( '&lt;span class=&quot;%1$s&quot;&gt;By&lt;/span&gt; %2$s', 'twentyten' ),
</ins><span class="cx">                                                                 'meta-prep meta-prep-author',
</span><span class="cx">                                                                 sprintf( '&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;',
</span><span class="cx">                                                                         get_author_posts_url( get_the_author_meta( 'ID' ) ),
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">                                                 ?&gt;
</span><span class="cx">                                                 &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;
</span><span class="cx">                                                 &lt;?php
</span><del>-                                                        printf( __('&lt;span class=&quot;%1$s&quot;&gt;Published&lt;/span&gt; %2$s', 'twentyten'),
</del><ins>+                                                        printf( __( '&lt;span class=&quot;%1$s&quot;&gt;Published&lt;/span&gt; %2$s', 'twentyten' ),
</ins><span class="cx">                                                                 'meta-prep meta-prep-entry-date',
</span><span class="cx">                                                                 sprintf( '&lt;span class=&quot;entry-date&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;%1$s&quot;&gt;%2$s&lt;/abbr&gt;&lt;/span&gt;',
</span><span class="cx">                                                                         esc_attr( get_the_time() ),
</span><span class="lines">@@ -50,10 +50,10 @@
</span><span class="cx">                                                         if ( wp_attachment_is_image() ) {
</span><span class="cx">                                                                 echo ' &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt; ';
</span><span class="cx">                                                                 $metadata = wp_get_attachment_metadata();
</span><del>-                                                                printf( __( 'Full size is %s pixels', 'twentyten'),
</del><ins>+                                                                printf( __( 'Full size is %s pixels', 'twentyten' ),
</ins><span class="cx">                                                                         sprintf( '&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s &amp;times; %4$s&lt;/a&gt;',
</span><span class="cx">                                                                                 wp_get_attachment_url(),
</span><del>-                                                                                esc_attr( __('Link to full-size image', 'twentyten') ),
</del><ins>+                                                                                esc_attr( __( 'Link to full-size image', 'twentyten' ) ),
</ins><span class="cx">                                                                                 $metadata['width'],
</span><span class="cx">                                                                                 $metadata['height']
</span><span class="cx">                                                                         )
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenloopphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/loop.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/loop.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/loop.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php /* How to display posts in the Gallery category. */ ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) || 'gallery' == get_post_format( $post-&gt;ID ) ) : ?&gt;
</del><ins>+        &lt;?php if ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) || 'gallery' == get_post_format( $post-&gt;ID ) ) : ?&gt;
</ins><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="cx"> 
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx">                         &lt;div class=&quot;entry-content&quot;&gt;
</span><span class="cx"> &lt;?php if ( post_password_required() ) : ?&gt;
</span><span class="cx">                                 &lt;?php the_content(); ?&gt;
</span><del>-&lt;?php else : ?&gt;                        
-                                &lt;?php 
</del><ins>+&lt;?php else : ?&gt;
+                                &lt;?php
</ins><span class="cx">                                         $images = get_children( array( 'post_parent' =&gt; $post-&gt;ID, 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'orderby' =&gt; 'menu_order', 'order' =&gt; 'ASC', 'numberposts' =&gt; 999 ) );
</span><span class="cx">                                         if ( $images ) :
</span><span class="cx">                                                 $total_images = count( $images );
</span><span class="lines">@@ -89,7 +89,7 @@
</span><span class="cx">                         &lt;/div&gt;&lt;!-- .entry-content --&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;entry-utility&quot;&gt;
</span><del>-                                &lt;a href=&quot;&lt;?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?&gt;&quot;&gt;&lt;?php _e( 'More Galleries', 'twentyten' ); ?&gt;&lt;/a&gt;
</del><ins>+                                &lt;a href=&quot;&lt;?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?&gt;&quot;&gt;&lt;?php _e( 'More Galleries', 'twentyten' ); ?&gt;&lt;/a&gt;
</ins><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><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php /* How to display posts in the asides category */ ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) || 'aside' == get_post_format( $post-&gt;ID ) ) : ?&gt;
</del><ins>+        &lt;?php elseif ( in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) || 'aside' == get_post_format( $post-&gt;ID ) ) : ?&gt;
</ins><span class="cx">                 &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/rtl.css (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/rtl.css        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/rtl.css        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> -------------------------------------------------------------- */
</span><span class="cx"> 
</span><span class="cx"> /* Text elements */
</span><del>-ul {
</del><ins>+ul, ol {
</ins><span class="cx">         margin: 0 1.5em 18px 0;
</span><span class="cx"> }
</span><span class="cx"> blockquote {
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/sidebar.php (16479 => 16480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/sidebar.php        2010-11-19 05:31:07 UTC (rev 16479)
+++ trunk/wp-content/themes/twentyten/sidebar.php        2010-11-19 05:37:47 UTC (rev 16480)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">          * some default sidebar stuff just in case.
</span><span class="cx">          */
</span><span class="cx">         if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?&gt;
</span><del>-        
</del><ins>+
</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></pre>
</div>
</div>

</body>
</html>