Ticket #13198: twentyten_printf_fixes.patch
File twentyten_printf_fixes.patch, 4.2 KB (added by , 15 years ago) |
---|
-
wp-content/themes/twentyten/attachment.php
22 22 23 23 <div class="entry-meta"> 24 24 <?php 25 printf(__( '<span class="meta-prep meta-prep-author"> 25 printf(__( '<span class="meta-prep meta-prep-author">By </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 'twentyten'), 26 26 get_author_posts_url( get_the_author_meta( 'ID' ) ), 27 27 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 28 28 get_the_author() -
wp-content/themes/twentyten/footer.php
24 24 25 25 <div id="site-generator"> 26 26 <?php do_action('twentyten_credits' ); ?> 27 < a href="http://wordpress.org/" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>27 <?php _e( '<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress.</a>' , 'twentyten' ); ?> 28 28 </div> 29 29 30 30 </div><!-- #colophon --> -
wp-content/themes/twentyten/single.php
24 24 <h1 class="entry-title"><?php the_title(); ?></h1> 25 25 26 26 <div class="entry-meta"> 27 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 28 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 29 <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> 30 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 27 <?php 28 printf( __( '<span class="meta-prep meta-prep-author">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyten' ), 29 get_permalink(), 30 esc_attr( get_the_time() ), 31 get_the_date(), 32 get_author_posts_url( get_the_author_meta( 'ID' ) ), 33 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 34 get_the_author() 35 ); 36 ?> 31 37 </div><!-- .entry-meta --> 32 38 33 39 <div class="entry-content"> … … 41 47 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> 42 48 </div><!-- #author-avatar --> 43 49 <div id="author-description"> 44 <h2><?php _e( 'About ', 'twentyten' ); ?><?php the_author(); ?></h2>50 <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 45 51 <?php the_author_meta( 'description' ); ?> 46 52 <div id="author-link"> 47 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php _e( 'View all posts by ', 'twentyten' ); ?><?php the_author(); ?> →</a>53 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php printf( esc_attr__( 'View all posts by %s →', 'twentyten' ), get_the_author() ); ?></a> 48 54 </div><!-- #author-link --> 49 55 </div><!-- #author-description --> 50 56 </div><!-- .entry-author-info -->