Make WordPress Core


Ignore:
Timestamp:
06/11/2011 05:15:50 AM (14 years ago)
Author:
dd32
Message:

Remove Comments/Trackbacks are closed text from image.php template, rely upon the comments closed text within comments.php. Remove duplicated Edit link. See #17748

File:
1 edited

Legend:

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

    r18244 r18270  
    9191                    </div><!-- .entry-content -->
    9292
    93                     <footer class="entry-meta">
    94                         <?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' ), esc_url( get_trackback_url() ) ); ?>
    96                         <?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' ), esc_url( get_trackback_url() ) ); ?>
    98                         <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
    99                             <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyeleven' ); ?>
    100                         <?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
    101                             <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyeleven' ); ?>
    102                         <?php endif; ?>
    103                         <?php edit_post_link( __( 'Edit', 'twentyeleven' ), ' <span class="edit-link">', '</span>' ); ?>
    104                     </footer><!-- .entry-meta -->
    10593                </article><!-- #post-<?php the_ID(); ?> -->
    10694
Note: See TracChangeset for help on using the changeset viewer.