<!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>[14534] trunk/wp-content/themes/twentyten/functions.php:
  I18n and whitespace fixes for functions.php in TwentyTen</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14534">14534</a></dd>
<dt>Author</dt> <dd>nbachiyski</dd>
<dt>Date</dt> <dd>2010-05-10 05:58:24 +0000 (Mon, 10 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>I18n and whitespace fixes for functions.php in TwentyTen</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentytenfunctionsphp">trunk/wp-content/themes/twentyten/functions.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/functions.php (14533 => 14534)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/functions.php        2010-05-10 05:28:01 UTC (rev 14533)
+++ trunk/wp-content/themes/twentyten/functions.php        2010-05-10 05:58:24 UTC (rev 14534)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> /** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */
</span><span class="cx"> add_action( 'after_setup_theme', 'twentyten_setup' );
</span><span class="cx"> 
</span><del>-if ( ! function_exists('twentyten_setup') ):
</del><ins>+if ( ! function_exists( 'twentyten_setup' ) ):
</ins><span class="cx"> /**
</span><span class="cx">  * Sets up theme defaults and registers support for various WordPress features.
</span><span class="cx">  *
</span><span class="lines">@@ -121,45 +121,53 @@
</span><span class="cx">         // ... and thus ends the changeable header business.
</span><span class="cx"> 
</span><span class="cx">         // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
</span><del>-        register_default_headers( array (
-                'berries' =&gt; array (
</del><ins>+        register_default_headers( array(
+                'berries' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/berries.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/berries-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */
</ins><span class="cx">                         'description' =&gt; __( 'Berries', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'cherryblossom' =&gt; array (
</del><ins>+                'cherryblossom' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/cherryblossoms.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/cherryblossoms-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Cherry Blossoms', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'concave' =&gt; array (
</del><ins>+                'concave' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/concave.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/concave-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Concave', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'fern' =&gt; array (
</del><ins>+                'fern' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/fern.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/fern-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Fern', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'forestfloor' =&gt; array (
</del><ins>+                'forestfloor' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/forestfloor.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/forestfloor-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Forest Floor', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'inkwell' =&gt; array (
</del><ins>+                'inkwell' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/inkwell.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/inkwell-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Inkwell', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'path' =&gt; array (
</del><ins>+                'path' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/path.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/path-thumbnail.jpg',
</span><ins>+                        /* translators: header image description */                        
</ins><span class="cx">                         'description' =&gt; __( 'Path', 'twentyten' )
</span><span class="cx">                 ),
</span><del>-                'sunset' =&gt; array (
</del><ins>+                'sunset' =&gt; array(
</ins><span class="cx">                         'url' =&gt; '%s/images/headers/sunset.jpg',
</span><span class="cx">                         'thumbnail_url' =&gt; '%s/images/headers/sunset-thumbnail.jpg',
</span><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">@@ -200,7 +208,7 @@
</span><span class="cx"> function twentyten_the_page_number() {
</span><span class="cx">         global $paged; // Contains page number.
</span><span class="cx">         if ( $paged &gt;= 2 )
</span><del>-                echo ' | ' . sprintf( __( 'Page %s' , 'twentyten' ), $paged );
</del><ins>+                echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), $paged );
</ins><span class="cx"> }
</span><span class="cx"> endif;
</span><span class="cx"> 
</span><span class="lines">@@ -266,20 +274,25 @@
</span><span class="cx">  * @since 3.0.0
</span><span class="cx">  */
</span><span class="cx"> function twentyten_comment( $comment, $args, $depth ) {
</span><del>-        $GLOBALS ['comment'] = $comment; ?&gt;
</del><ins>+        $GLOBALS['comment'] = $comment; ?&gt;
</ins><span class="cx">         &lt;?php if ( '' == $comment-&gt;comment_type ) : ?&gt;
</span><span class="cx">         &lt;li &lt;?php comment_class(); ?&gt; id=&quot;li-comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;
</span><span class="cx">                 &lt;div id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;
</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><del>-                        &lt;?php printf( __( '&lt;cite class=&quot;fn&quot;&gt;%s&lt;/cite&gt; &lt;span class=&quot;says&quot;&gt;says:&lt;/span&gt;', 'twentyten' ), get_comment_author_link() ); ?&gt;
</del><ins>+                        &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;
</ins><span class="cx">                 &lt;/div&gt;
</span><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="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;div class=&quot;comment-meta commentmetadata&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url( get_comment_link( $comment-&gt;comment_ID ) ); ?&gt;&quot;&gt;&lt;?php printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?&gt;&lt;/a&gt;&lt;?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?&gt;&lt;/div&gt;
</del><ins>+                &lt;div class=&quot;comment-meta commentmetadata&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url( get_comment_link( $comment-&gt;comment_ID ) ); ?&gt;&quot;&gt;
+                        &lt;?php
+                                /* translators: 1: date, 2: time */
+                                printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?&gt;&lt;/a&gt;&lt;?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
+                        ?&gt;
+                &lt;/div&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="lines">@@ -290,7 +303,7 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;?php else : ?&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 endif;
</span><span class="cx"> }
</span><span class="cx"> endif;
</span><span class="lines">@@ -304,67 +317,67 @@
</span><span class="cx">  */
</span><span class="cx"> function twentyten_widgets_init() {
</span><span class="cx">         // Area 1
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'Primary Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'primary-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The primary widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         // Area 2
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'Secondary Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'secondary-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The secondary widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         // Area 3
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'First Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'first-footer-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The first footer widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         // Area 4
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'Second Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'second-footer-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The second footer widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         // Area 5
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'Third Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'third-footer-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The third footer widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         // Area 6
</span><del>-        register_sidebar( array (
</del><ins>+        register_sidebar( array(
</ins><span class="cx">                 'name' =&gt; __( 'Fourth Footer Widget Area', 'twentyten' ),
</span><span class="cx">                 'id' =&gt; 'fourth-footer-widget-area',
</span><span class="cx">                 'description' =&gt; __( 'The fourth footer widget area', 'twentyten' ),
</span><span class="cx">                 'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
</span><del>-                'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
</del><ins>+                'after_widget' =&gt; '&lt;/li&gt;',
</ins><span class="cx">                 'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
</span><span class="cx">                 'after_title' =&gt; '&lt;/h3&gt;',
</span><span class="cx">         ) );
</span><span class="lines">@@ -385,7 +398,7 @@
</span><span class="cx">  */
</span><span class="cx"> function twentyten_get_next_attachment_url() {
</span><span class="cx">         global $post;
</span><del>-        $post = get_post($post);
</del><ins>+        $post = get_post( $post );
</ins><span class="cx">         $attachments = array_values( get_children( array( 'post_parent' =&gt; $post-&gt;post_parent, 'post_status' =&gt; 'inherit', 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'order' =&gt; 'ASC', 'orderby' =&gt; 'menu_order ID' ) ) );
</span><span class="cx">  
</span><span class="cx">         foreach ( $attachments as $k =&gt; $attachment ) {
</span></span></pre>
</div>
</div>

</body>
</html>