- Timestamp:
- 01/22/2015 12:41:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyten/loop-attachment.php
r28585 r31266 81 81 else 82 82 // or get the URL of the first image attachment 83 $next_attachment_url = get_attachment_link( $attachments[ 0]->ID );83 $next_attachment_url = get_attachment_link( $attachments[0]->ID ); 84 84 } else { 85 85 // or, if there's only 1 image attachment, get the URL of the image … … 112 112 </div><!-- #nav-below --> 113 113 <?php else : ?> 114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo esc_html( basename( get_permalink() ) ); ?></a> 115 115 <?php endif; ?> 116 116 </div><!-- .entry-attachment --> 117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div>117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 118 118 119 119 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
Note: See TracChangeset
for help on using the changeset viewer.