<!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>[13147] trunk/wp-content/themes/twentyten:
  Replace $authordata usage with API, Restore &quot;Also posted in..&quot;/&quot;
 Also tagged...&quot; on taxonomy archives,
  Handle Excerpts for Asides correctly on Archives.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13147">13147</a></dd>
<dt>Author</dt> <dd>dd32</dd>
<dt>Date</dt> <dd>2010-02-14 10:02:38 +0000 (Sun, 14 Feb 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Replace $authordata usage with API, Restore &quot;Also posted in..&quot;/&quot;Also tagged...&quot; on taxonomy archives, Handle Excerpts for Asides correctly on Archives. See <a href="http://trac.wordpress.org/ticket/9015">#9015</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="#trunkwpcontentthemestwentytenfunctionsphp">trunk/wp-content/themes/twentyten/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenloopphp">trunk/wp-content/themes/twentyten/loop.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 (13146 => 13147)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/attachment.php        2010-02-14 09:32:23 UTC (rev 13146)
+++ trunk/wp-content/themes/twentyten/attachment.php        2010-02-14 10:02:38 UTC (rev 13147)
</span><span class="lines">@@ -12,7 +12,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry-meta&quot;&gt;
</span><span class="cx">                                                 &lt;span class=&quot;meta-prep meta-prep-author&quot;&gt;&lt;?php _e( 'By ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><del>-                                                &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID, $authordata-&gt;user_nicename ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata-&gt;display_name ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</del><ins>+                                                &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata-&gt;display_name ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</ins><span class="cx">                                                 &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><span class="cx">                                                 &lt;span class=&quot;meta-prep meta-prep-entry-date&quot;&gt;&lt;?php _e( 'Published ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><span class="cx">                                                 &lt;span class=&quot;entry-date&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;&lt;?php the_time() ?&gt;&quot;&gt;&lt;?php echo get_the_date(); ?&gt;&lt;/abbr&gt;&lt;/span&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenauthorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/author.php (13146 => 13147)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/author.php        2010-02-14 09:32:23 UTC (rev 13146)
+++ trunk/wp-content/themes/twentyten/author.php        2010-02-14 10:02:38 UTC (rev 13147)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                &lt;h1 class=&quot;page-title author&quot;&gt;&lt;?php printf( __( 'Author Archives: &lt;span class=&quot;vcard&quot;&gt;%s&lt;/span&gt;', 'twentyten' ), &quot;&lt;a class='url fn n' href='$authordata-&gt;user_url' title='&quot; . esc_attr(get_the_author()) . &quot;' rel='me'&gt;&quot; . get_the_author() . &quot;&lt;/a&gt;&quot; ); ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;h1 class=&quot;page-title author&quot;&gt;&lt;?php printf( __( 'Author Archives: &lt;span class=&quot;vcard&quot;&gt;%s&lt;/span&gt;', 'twentyten' ), &quot;&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;&quot; ); ?&gt;&lt;/h1&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries  ?&gt;
</span><span class="cx">                                         &lt;div id=&quot;entry-author-info&quot;&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/functions.php (13146 => 13147)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/functions.php        2010-02-14 09:32:23 UTC (rev 13146)
+++ trunk/wp-content/themes/twentyten/functions.php        2010-02-14 10:02:38 UTC (rev 13147)
</span><span class="lines">@@ -118,42 +118,38 @@
</span><span class="cx"> }
</span><span class="cx"> add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
</span><span class="cx"> 
</span><del>-
-// For category lists on category archives: Returns other categories except the current one (redundant)
-function cats_meow( $glue ) {
-        $current_cat = single_cat_title( '', false );
-        $separator = &quot;\n&quot;;
-        $cats = explode( $separator, get_the_category_list($separator) );
-        foreach ( $cats as $i =&gt; $str ) {
-                if ( strstr( $str, &quot;&gt;$current_cat&lt;&quot; ) ) {
-                        unset( $cats[$i] );
-                        break;
</del><ins>+function twentyten_cat_list() {
+        return twentyten_term_list('category', ', ', __('Posted in %s', 'twentyten'), __('Also posted in %s', 'twentyten') );
+}
+function twentyten_tag_list() {
+        return twentyten_term_list('post_tag', ', ', __('Tagged %s', 'twentyten'), __('Also tagged %s', 'twentyten') );
+}
+function twentyten_term_list($taxonomy, $glue = ', ', $text = '', $also_text = '') {
+        global $wp_query, $post;
+        $current_term = $wp_query-&gt;queried_object;
+        $terms = wp_get_object_terms($post-&gt;ID, $taxonomy);
+        // If we're viewing a Taxonomy page.. 
+        if ( isset($current_term-&gt;taxonomy) &amp;&amp; $taxonomy == $current_term-&gt;taxonomy ) {
+                // Remove the term from display.
+                foreach ( (array)$terms as $key =&gt; $term ) {
+                        if ( $term-&gt;term_id == $current_term-&gt;term_id ) {
+                                unset($terms[$key]);
+                                break;
+                        }
</ins><span class="cx">                 }
</span><ins>+                // Change to Also text as we've now removed something from the terms list.
+                $text = $also_text;
</ins><span class="cx">         }
</span><del>-        if ( empty($cats) )
-                return false;
-
-        return trim( join( $glue, $cats ) );
-} // end cats_meow
-
-
-// For tag lists on tag archives: Returns other tags except the current one (redundant)
-function tag_ur_it( $glue ) {
-        $current_tag = single_tag_title( '', '',  false );
-        $separator = &quot;\n&quot;;
-        $tags = explode( $separator, get_the_tag_list( &quot;&quot;, &quot;$separator&quot;, &quot;&quot; ) );
-        foreach ( $tags as $i =&gt; $str ) {
-                if ( strstr( $str, &quot;&gt;$current_tag&lt;&quot; ) ) {
-                        unset( $tags[$i] );
-                        break;
-                }
</del><ins>+        $tlist = array();
+        $rel = 'category' == $taxonomy ? 'rel=&quot;category&quot;' : 'rel=&quot;tag&quot;';
+        foreach ( (array)$terms as $term ) {
+                $tlist[] = '&lt;a href=&quot;' . get_term_link( $term, $taxonomy ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'View all posts in %s', 'twentyten' ), $term-&gt;name ) ) . '&quot; ' . $rel . '&gt;' . $term-&gt;name . '&lt;/a&gt;';
</ins><span class="cx">         }
</span><del>-        if ( empty($tags) )
-                return false;
</del><ins>+        if ( !empty($tlist) )
+                return sprintf($text, join($glue, $tlist));
+        return '';
+}
</ins><span class="cx"> 
</span><del>-        return trim( join( $glue, $tags ) );
-} // end tag_ur_it
-
</del><span class="cx"> // Register widgetized areas
</span><span class="cx"> function twentyten_widgets_init() {
</span><span class="cx">         // Area 1
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenloopphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/loop.php (13146 => 13147)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/loop.php        2010-02-14 09:32:23 UTC (rev 13146)
+++ trunk/wp-content/themes/twentyten/loop.php        2010-02-14 10:02:38 UTC (rev 13147)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">                         &lt;span class=&quot;meta-prep meta-prep-author&quot;&gt;&lt;?php _e( 'Posted on ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><span class="cx">                         &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_time(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;span class=&quot;entry-date&quot;&gt;&lt;?php echo get_the_date(); ?&gt;&lt;/span&gt;&lt;/a&gt;
</span><span class="cx">                         &lt;span class=&quot;meta-sep&quot;&gt; &lt;?php _e( 'by ', 'twentyten' ); ?&gt; &lt;/span&gt;
</span><del>-                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</del><ins>+                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</ins><span class="cx">                 &lt;/div&gt;&lt;!-- .entry-meta --&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;entry-content&quot;&gt;
</span><span class="lines">@@ -46,16 +46,22 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php } elseif ( in_category( 'asides' ) ) { ?&gt;
</span><span class="cx">         &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><ins>+&lt;?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives &amp; search ?&gt;
+                &lt;div class=&quot;entry-summary&quot;&gt;
+                        &lt;?php the_excerpt( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
+                &lt;/div&gt;&lt;!-- .entry-summary --&gt;
+&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&amp;nbsp;reading&amp;nbsp;&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><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;span class=&quot;meta-prep meta-prep-author&quot;&gt;&lt;?php _e( 'Posted on ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><span class="cx">                         &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_time(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;span class=&quot;entry-date&quot;&gt;&lt;?php echo get_the_date(); ?&gt;&lt;/span&gt;&lt;/a&gt;
</span><span class="cx">                         &lt;span class=&quot;meta-sep&quot;&gt; &lt;?php _e( ' by ', 'twentyten' ); ?&gt; &lt;/span&gt;
</span><del>-                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
-                        &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php __( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
</del><ins>+                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
+                        &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
</ins><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' ), &quot;&lt;span class=\&quot;meta-sep\&quot;&gt;|&lt;/span&gt;\n\t\t\t\t\t\t&lt;span class=\&quot;edit-link\&quot;&gt;&quot;, &quot;&lt;/span&gt;\n\t\t\t\t\t\n&quot; ); ?&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #entry-utility --&gt;
</span><span class="lines">@@ -71,7 +77,7 @@
</span><span class="cx">                         &lt;a href=&quot;&lt;?php
</span><span class="cx"> the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_time(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;span class=&quot;entry-date&quot;&gt;&lt;?php echo get_the_date(); ?&gt;&lt;/span&gt;&lt;/a&gt;
</span><span class="cx">                         &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' by ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><del>-                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</del><ins>+                        &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</ins><span class="cx">                 &lt;/div&gt;&lt;!-- .entry-meta --&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives &amp; search ?&gt;
</span><span class="lines">@@ -86,9 +92,13 @@
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;entry-utility&quot;&gt;
</span><del>-                        &lt;span class=&quot;cat-links&quot;&gt;&lt;span class=&quot;entry-utility-prep entry-utility-prep-cat-links&quot;&gt;&lt;?php _e( 'Posted in ', 'twentyten' ); ?&gt;&lt;/span&gt;&lt;?php echo get_the_category_list( ', ' ); ?&gt;&lt;/span&gt;
-                        &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php __( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
-                        &lt;?php the_tags( '&lt;span class=&quot;tag-links&quot;&gt;&lt;span class=&quot;entry-utility-prep entry-utility-prep-tag-links&quot;&gt;' . __('Tagged ', 'twentyten' ) . '&lt;/span&gt;', &quot;, &quot;, &quot;&lt;/span&gt;\n\t\t\t\t\t\t&lt;span class=\&quot;meta-sep\&quot;&gt;|&lt;/span&gt;\n&quot; ); ?&gt;
</del><ins>+                        &lt;span class=&quot;cat-links&quot;&gt;&lt;span class=&quot;entry-utility-prep entry-utility-prep-cat-links&quot;&gt;&lt;?php echo twentyten_cat_list(); ?&gt;&lt;/span&gt;&lt;/span&gt;
+                        &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
+                        &lt;?php $tags_text = twentyten_tag_list(); ?&gt;
+                        &lt;?php if ( !empty($tags_text) ) : ?&gt;
+                        &lt;span class=&quot;tag-links&quot;&gt;&lt;span class=&quot;entry-utility-prep entry-utility-prep-tag-links&quot;&gt;&lt;?php echo $tags_text; ?&gt;&lt;/span&gt;&lt;/span&gt;
+                        &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' | ', 'twentyten' ); ?&gt;&lt;/span&gt;
+                        &lt;?php endif; //$tags_text ?&gt;
</ins><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' ), &quot;&lt;span class=\&quot;meta-sep\&quot;&gt;|&lt;/span&gt;\n\t\t\t\t\t\t&lt;span class=\&quot;edit-link\&quot;&gt;&quot;, &quot;&lt;/span&gt;\n\t\t\t\t\t\n&quot; ); ?&gt;
</span><span class="cx">                 &lt;/div&gt;&lt;!-- #entry-utility --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensinglephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/single.php (13146 => 13147)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/single.php        2010-02-14 09:32:23 UTC (rev 13146)
+++ trunk/wp-content/themes/twentyten/single.php        2010-02-14 10:02:38 UTC (rev 13147)
</span><span class="lines">@@ -15,7 +15,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry-meta&quot;&gt;
</span><span class="cx">                                                 &lt;span class=&quot;meta-prep meta-prep-author&quot;&gt;&lt;?php _e( 'Posted by ', 'twentyten' ); ?&gt;&lt;/span&gt;
</span><del>-                                                &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID, $authordata-&gt;user_nicename ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</del><ins>+                                                &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/span&gt;
</ins><span class="cx">                                                 &lt;span class=&quot;meta-sep&quot;&gt;&lt;?php _e( ' on ', 'twentyten' ); ?&gt; &lt;/span&gt;
</span><span class="cx">                                                 &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_time(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;span class=&quot;entry-date&quot;&gt;&lt;?php echo get_the_date(); ?&gt;&lt;/span&gt;&lt;/a&gt;
</span><span class="cx">                                                 &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), &quot;&lt;span class=\&quot;meta-sep\&quot;&gt;|&lt;/span&gt;\n\t\t\t\t\t\t&lt;span class=\&quot;edit-link\&quot;&gt;&quot;, &quot;&lt;/span&gt;\n\t\t\t\t\t&quot; ); ?&gt;
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx">                                                         &lt;h2&gt;&lt;?php _e( 'About ', 'twentyten' ); ?&gt;&lt;?php the_author(); ?&gt;&lt;/h2&gt;
</span><span class="cx">                                                         &lt;?php the_author_meta('description'); ?&gt;
</span><span class="cx">                                                         &lt;div id=&quot;author-link&quot;&gt;
</span><del>-                                                                &lt;a href=&quot;&lt;?php echo get_author_posts_url( $authordata-&gt;ID ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php _e( 'View all posts by ', 'twentyten' ); ?&gt;&lt;?php the_author(); ?&gt; &amp;rarr;&lt;/a&gt;
</del><ins>+                                                                &lt;a href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta('ID') ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php _e( 'View all posts by ', 'twentyten' ); ?&gt;&lt;?php the_author(); ?&gt; &amp;rarr;&lt;/a&gt;
</ins><span class="cx">                                                         &lt;/div&gt;&lt;!-- #author-link        --&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- #author-description        --&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-author-info --&gt;
</span></span></pre>
</div>
</div>

</body>
</html>