Ticket #28251: 28251.3.diff
| File 28251.3.diff, 1.7 KB (added by , 12 years ago) |
|---|
-
src/wp-content/themes/twentyten/loop-attachment.php
18 18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 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 echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php21 <p class="page-title"><a href="<?php echo esc_url( 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 ) ); 24 24 ?></a></p> … … 110 110 <div class="nav-next"><?php next_image_link( false ); ?></div> 111 111 </div><!-- #nav-below --> 112 112 <?php else : ?> 113 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>113 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 114 114 <?php endif; ?> 115 115 </div><!-- .entry-attachment --> 116 116 <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>