- Timestamp:
- 05/16/2014 10:43:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyten/loop-attachment.php
r25627 r28463 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 ) ); … … 53 53 printf( __( 'Full size is %s pixels', 'twentyten' ), 54 54 sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', 55 wp_get_attachment_url(),55 esc_url( wp_get_attachment_url() ), 56 56 esc_attr( __( 'Link to full-size image', 'twentyten' ) ), 57 57 $metadata['width'], … … 86 86 } 87 87 ?> 88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php88 <p class="attachment"><a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 89 89 /** 90 90 * Filter the Twenty Ten default attachment width. … … 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 -->
Note: See TracChangeset
for help on using the changeset viewer.