Changeset 19582 for trunk/wp-content/themes/twentyten/loop-attachment.php
- Timestamp:
- 12/10/2011 07:18:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop-attachment.php
r18189 r19582 19 19 20 20 <?php if ( ! empty( $post->post_parent ) ) : ?> 21 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php e sc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent) ) ); ?>" rel="gallery"><?php21 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php 22 22 /* translators: %s - title of parent post */ 23 23 printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) ); … … 34 34 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', 35 35 get_author_posts_url( get_the_author_meta( 'ID' ) ), 36 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),36 esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ), 37 37 get_the_author() 38 38 ) … … 86 86 } 87 87 ?> 88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title()); ?>" rel="attachment"><?php88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 89 89 $attachment_width = apply_filters( 'twentyten_attachment_size', 900 ); 90 90 $attachment_height = apply_filters( 'twentyten_attachment_height', 900 ); … … 97 97 </div><!-- #nav-below --> 98 98 <?php else : ?> 99 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title()); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>99 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 100 100 <?php endif; ?> 101 101 </div><!-- .entry-attachment -->
Note: See TracChangeset
for help on using the changeset viewer.