Make WordPress Core


Ignore:
Timestamp:
01/22/2015 12:41:58 AM (10 years ago)
Author:
lancewillett
Message:

Twenty Ten: fix escaping and minor code style issues. See #29127.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/loop-attachment.php

    r28585 r31266  
    8181        else
    8282            // 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 );
    8484    } else {
    8585        // or, if there's only 1 image attachment, get the URL of the image
     
    112112                        </div><!-- #nav-below -->
    113113<?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>
    115115<?php endif; ?>
    116116                        </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>
    118118
    119119<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.