<!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" />
<title>[18244] trunk/wp-content/themes/twentyeleven: Twenty Eleven: escaping frenzy, hide authors if a single author blog.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/18244">18244</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2011-06-10 21:57:18 +0000 (Fri, 10 Jun 2011)</dd>
</dl>
<h3>Log Message</h3>
<pre>Twenty Eleven: escaping frenzy, hide authors if a single author blog. props DH-Shredder, props iandstewart, see <a href="http://trac.wordpress.org/ticket/17385">#17385</a>, fixes <a href="http://trac.wordpress.org/ticket/17563">#17563</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyelevenauthorphp">trunk/wp-content/themes/twentyeleven/author.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentasidephp">trunk/wp-content/themes/twentyeleven/content-aside.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentfeaturedphp">trunk/wp-content/themes/twentyeleven/content-featured.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentgalleryphp">trunk/wp-content/themes/twentyeleven/content-gallery.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentimagephp">trunk/wp-content/themes/twentyeleven/content-image.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentlinkphp">trunk/wp-content/themes/twentyeleven/content-link.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentquotephp">trunk/wp-content/themes/twentyeleven/content-quote.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentsinglephp">trunk/wp-content/themes/twentyeleven/content-single.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentstatusphp">trunk/wp-content/themes/twentyeleven/content-status.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentphp">trunk/wp-content/themes/twentyeleven/content.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenfunctionsphp">trunk/wp-content/themes/twentyeleven/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenheaderphp">trunk/wp-content/themes/twentyeleven/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenimagephp">trunk/wp-content/themes/twentyeleven/image.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevensearchformphp">trunk/wp-content/themes/twentyeleven/searchform.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenstylecss">trunk/wp-content/themes/twentyeleven/style.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentyelevenauthorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/author.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/author.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/author.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">                                 ?>
</span><span class="cx">
</span><span class="cx">                                 <header class="page-header">
</span><del>-                                        <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</del><ins>+                                        <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</ins><span class="cx">                                 </header>
</span><span class="cx">
</span><span class="cx">                                 <?php
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentasidephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-aside.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-aside.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-aside.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -39,16 +39,7 @@
</span><span class="cx">                 <?php endif; ?>
</span><span class="cx">
</span><span class="cx">                 <footer class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                         <?php if ( comments_open() ) : ?>
</span><span class="cx">                         <span class="sep"> | </span>
</span><span class="cx">                         <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentfeaturedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-featured.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-featured.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-featured.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -14,16 +14,7 @@
</span><span class="cx">                 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</span><span class="cx">
</span><span class="cx">                 <div class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                 </div><!-- .entry-meta -->
</span><span class="cx">         </header><!-- .entry-header -->
</span><span class="cx">
</span><span class="lines">@@ -46,7 +37,7 @@
</span><span class="cx">                                 /* translators: used between list items, there is a space after the comma */
</span><span class="cx">                                 get_the_category_list( __( ', ', 'twentyeleven' ) ),
</span><span class="cx">                                 $tag_list,
</span><del>-                                get_permalink(),
</del><ins>+                                esc_url( get_permalink() ),
</ins><span class="cx">                                 the_title_attribute( 'echo=0' )
</span><span class="cx">                         );
</span><span class="cx">                 ?>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentgalleryphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-gallery.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-gallery.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-gallery.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -18,16 +18,7 @@
</span><span class="cx">                 </hgroup>
</span><span class="cx">
</span><span class="cx">                 <div class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                 </div><!-- .entry-meta -->
</span><span class="cx">         </header><!-- .entry-header -->
</span><span class="cx">
</span><span class="lines">@@ -54,7 +45,7 @@
</span><span class="cx">                                 </figure><!-- .gallery-thumb -->
</span><span class="cx">
</span><span class="cx">                                 <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
</span><del>-                                                'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
</del><ins>+                                                'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
</ins><span class="cx">                                                 number_format_i18n( $total_images )
</span><span class="cx">                                         ); ?></em></p>
</span><span class="cx">                         <?php endif; ?>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentimagephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-image.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-image.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-image.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -32,11 +32,11 @@
</span><span class="cx">                         <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?>
</span><span class="cx">                         <div class="entry-meta">
</span><span class="cx">                                 <?php
</span><del>-                                        printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                                get_permalink(),
</del><ins>+                                        printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
+                                                esc_url( get_permalink() ),
</ins><span class="cx">                                                 get_the_date( 'c' ),
</span><span class="cx">                                                 get_the_date(),
</span><del>-                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
</del><ins>+                                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
</ins><span class="cx">                                                 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
</span><span class="cx">                                                 get_the_author()
</span><span class="cx">                                         );
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentlinkphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-link.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-link.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-link.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -39,16 +39,7 @@
</span><span class="cx">                 <?php endif; ?>
</span><span class="cx">
</span><span class="cx">                 <footer class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                         <?php if ( comments_open() ) : ?>
</span><span class="cx">                         <span class="sep"> | </span>
</span><span class="cx">                         <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentquotephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-quote.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-quote.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-quote.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -17,16 +17,7 @@
</span><span class="cx">
</span><span class="cx">                         <?php if ( 'post' == $post->post_type ) : ?>
</span><span class="cx">                         <div class="entry-meta">
</span><del>-                                <?php
-                                        printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                                get_permalink(),
-                                                get_the_date( 'c' ),
-                                                get_the_date(),
-                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                                sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                                get_the_author()
-                                        );
-                                ?>
</del><ins>+                                <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                         </div><!-- .entry-meta -->
</span><span class="cx">                         <?php endif; ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentsinglephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-single.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-single.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-single.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -13,16 +13,7 @@
</span><span class="cx">                 <h1 class="entry-title"><?php the_title(); ?></h1>
</span><span class="cx">
</span><span class="cx">                 <div class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                 </div><!-- .entry-meta -->
</span><span class="cx">         </header><!-- .entry-header -->
</span><span class="cx">
</span><span class="lines">@@ -45,10 +36,10 @@
</span><span class="cx">                                 /* translators: used between list items, there is a space after the comma */
</span><span class="cx">                                 get_the_category_list( __( ', ', 'twentyeleven' ) ),
</span><span class="cx">                                 $tag_list,
</span><del>-                                get_permalink(),
</del><ins>+                                esc_url( get_permalink() ),
</ins><span class="cx">                                 the_title_attribute( 'echo=0' ),
</span><span class="cx">                                 get_the_author(),
</span><del>-                                get_author_posts_url( get_the_author_meta( 'ID' ) )
</del><ins>+                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
</ins><span class="cx">                         );
</span><span class="cx">                 ?>
</span><span class="cx">                 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</span><span class="lines">@@ -62,7 +53,7 @@
</span><span class="cx">                                 <h2><?php printf( esc_attr__( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
</span><span class="cx">                                 <?php the_author_meta( 'description' ); ?>
</span><span class="cx">                                 <div id="author-link">
</span><del>-                                        <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author">
</del><ins>+                                        <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
</ins><span class="cx">                                                 <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
</span><span class="cx">                                         </a>
</span><span class="cx">                                 </div><!-- #author-link        -->
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentstatusphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content-status.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content-status.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content-status.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -40,16 +40,7 @@
</span><span class="cx">                 <?php endif; ?>
</span><span class="cx">
</span><span class="cx">                 <footer class="entry-meta">
</span><del>-                        <?php
-                                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                        get_permalink(),
-                                        get_the_date( 'c' ),
-                                        get_the_date(),
-                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                        get_the_author()
-                                );
-                        ?>
</del><ins>+                        <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                         <?php if ( comments_open() ) : ?>
</span><span class="cx">                         <span class="sep"> | </span>
</span><span class="cx">                         <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/content.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -21,16 +21,7 @@
</span><span class="cx">
</span><span class="cx">                         <?php if ( 'post' == $post->post_type ) : ?>
</span><span class="cx">                         <div class="entry-meta">
</span><del>-                                <?php
-                                        printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
-                                                get_permalink(),
-                                                get_the_date( 'c' ),
-                                                get_the_date(),
-                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                                sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
-                                                get_the_author()
-                                        );
-                                ?>
</del><ins>+                                <?php twentyeleven_posted_on(); ?>
</ins><span class="cx">                         </div><!-- .entry-meta -->
</span><span class="cx">                         <?php endif; ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/functions.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/functions.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/functions.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -300,7 +300,7 @@
</span><span class="cx">                 else
</span><span class="cx">                         $style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"';
</span><span class="cx">                 ?>
</span><del>-                <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
</del><ins>+                <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
</ins><span class="cx">                 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
</span><span class="cx">                 <?php $header_image = get_header_image();
</span><span class="cx">                 if ( ! empty( $header_image ) ) : ?>
</span><span class="lines">@@ -325,7 +325,7 @@
</span><span class="cx"> * Returns a "Continue Reading" link for excerpts
</span><span class="cx"> */
</span><span class="cx"> function twentyeleven_continue_reading_link() {
</span><del>-        return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
</del><ins>+        return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /**
</span><span class="lines">@@ -558,4 +558,38 @@
</span><span class="cx">                         break;
</span><span class="cx">         endswitch;
</span><span class="cx"> }
</span><del>-endif; // ends check for twentyeleven_comment()
</del><span class="cx">\ No newline at end of file
</span><ins>+endif; // ends check for twentyeleven_comment()
+
+if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
+/**
+ * Prints HTML with meta information for the current post-date/time and author.
+ *
+ * @since Twenty Eleven 1.0
+ */
+function twentyeleven_posted_on() {
+        printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
+                esc_url( get_permalink() ),
+                esc_attr( get_the_time() ),
+                esc_attr( get_the_date( 'c' ) ),
+                esc_html( get_the_date() ),
+                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
+                sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
+                esc_html( get_the_author() )
+        );
+}
+endif;
+
+/**
+ * Adds Twenty Eleven author class to the array of body classes.
+ *
+ * @since Twenty Eleven 1.0
+ */
+function twentyeleven_author_class( $classes ) {
+
+        if ( ! is_multi_author() ) {
+                $classes[] = 'single-author';
+        }
+        
+        return $classes;
+}
+add_filter( 'body_class', 'twentyeleven_author_class' );
</ins></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/header.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/header.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/header.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx"> <div id="page" class="hfeed">
</span><span class="cx">         <header id="branding" role="banner">
</span><span class="cx">                         <hgroup>
</span><del>-                                <h1 id="site-title"><span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
</del><ins>+                                <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
</ins><span class="cx">                                 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
</span><span class="cx">                         </hgroup>
</span><span class="cx">
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx">                                 $header_image = get_header_image();
</span><span class="cx">                                 if ( ! empty( $header_image ) ) :
</span><span class="cx">                         ?>
</span><del>-                        <a href="<?php echo home_url( '/' ); ?>">
</del><ins>+                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
</ins><span class="cx">                                 <?php
</span><span class="cx">                                         // The header image
</span><span class="cx">                                         // Check if this is a post or page, if it has a thumbnail, and if it's a big one
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenimagephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/image.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/image.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/image.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -29,10 +29,10 @@
</span><span class="cx">                                                                 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'twentyeleven' ),
</span><span class="cx">                                                                         esc_attr( get_the_time() ),
</span><span class="cx">                                                                         get_the_date(),
</span><del>-                                                                        wp_get_attachment_url(),
</del><ins>+                                                                        esc_url( wp_get_attachment_url() ),
</ins><span class="cx">                                                                         $metadata['width'],
</span><span class="cx">                                                                         $metadata['height'],
</span><del>-                                                                        get_permalink( $post->post_parent ),
</del><ins>+                                                                        esc_url( get_permalink( $post->post_parent ) ),
</ins><span class="cx">                                                                         get_the_title( $post->post_parent )
</span><span class="cx">                                                                 );
</span><span class="cx">                                                         ?>
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">                 $next_attachment_url = wp_get_attachment_url();
</span><span class="cx">         }
</span><span class="cx"> ?>
</span><del>-                                                                <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
</del><ins>+                                                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
</ins><span class="cx">                                                                 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
</span><span class="cx">                                                                 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
</span><span class="cx">                                                                 ?></a>
</span><span class="lines">@@ -92,9 +92,9 @@
</span><span class="cx">
</span><span class="cx">                                         <footer class="entry-meta">
</span><span class="cx">                                                 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
</span><del>-                                                        <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), get_trackback_url() ); ?>
</del><ins>+                                                        <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?>
</ins><span class="cx">                                                 <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
</span><del>-                                                        <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), get_trackback_url() ); ?>
</del><ins>+                                                        <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?>
</ins><span class="cx">                                                 <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
</span><span class="cx">                                                         <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyeleven' ); ?>
</span><span class="cx">                                                 <?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevensearchformphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/searchform.php (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/searchform.php        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/searchform.php        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> * @since Twenty Eleven 1.0
</span><span class="cx"> */
</span><span class="cx"> ?>
</span><del>-        <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
</del><ins>+        <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
</ins><span class="cx">                 <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
</span><span class="cx">                 <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
</span><span class="cx">                 <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenstylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/style.css (18243 => 18244)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/style.css        2011-06-10 21:37:14 UTC (rev 18243)
+++ trunk/wp-content/themes/twentyeleven/style.css        2011-06-10 21:57:18 UTC (rev 18244)
</span><span class="lines">@@ -738,6 +738,9 @@
</span><span class="cx"> .entry-meta a {
</span><span class="cx">         font-weight: bold;
</span><span class="cx"> }
</span><ins>+.single-author .entry-meta .by-author {
+        display: none;
+}
</ins><span class="cx"> .entry-content,
</span><span class="cx"> .entry-summary {
</span><span class="cx">         padding: 1.625em 0 0;
</span></span></pre>
</div>
</div>
</body>
</html>