Make WordPress Core


Ignore:
Timestamp:
06/10/2011 09:57:18 PM (13 years ago)
Author:
nacin
Message:

Twenty Eleven: escaping frenzy, hide authors if a single author blog. props DH-Shredder, props iandstewart, see #17385, fixes #17563.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/image.php

    r18072 r18244  
    3030                                    esc_attr( get_the_time() ),
    3131                                    get_the_date(),
    32                                     wp_get_attachment_url(),
     32                                    esc_url( wp_get_attachment_url() ),
    3333                                    $metadata['width'],
    3434                                    $metadata['height'],
    35                                     get_permalink( $post->post_parent ),
     35                                    esc_url( get_permalink( $post->post_parent ) ),
    3636                                    get_the_title( $post->post_parent )
    3737                                );
     
    7070    }
    7171?>
    72                                 <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
     72                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
    7373                                $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
    7474                                echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
     
    9393                    <footer class="entry-meta">
    9494                        <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
    95                             <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), get_trackback_url() ); ?>
     95                            <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?>
    9696                        <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
    97                             <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), get_trackback_url() ); ?>
     97                            <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?>
    9898                        <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
    9999                            <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyeleven' ); ?>
Note: See TracChangeset for help on using the changeset viewer.