Make WordPress Core

Changeset 23621


Ignore:
Timestamp:
03/05/2013 09:44:38 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: remove extraneous comment link on single post views, props markmcwilliams. Fixes #23657.

Location:
trunk/wp-content/themes/twentythirteen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/content-gallery.php

    r23452 r23621  
    3232        <?php twentythirteen_entry_meta(); ?>
    3333
    34         <?php if ( comments_open() ) : ?>
     34        <?php if ( comments_open() && ! is_single() ) : ?>
    3535        <span class="comments-link">
    3636            <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
  • trunk/wp-content/themes/twentythirteen/content-image.php

    r23469 r23621  
    2828        <?php twentythirteen_entry_meta(); ?>
    2929
    30         <?php if ( comments_open() ) : ?>
     30        <?php if ( comments_open() && ! is_single() ) : ?>
    3131        <span class="comments-link">
    3232            <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
  • trunk/wp-content/themes/twentythirteen/content-quote.php

    r23452 r23621  
    1818        <?php twentythirteen_entry_meta(); ?>
    1919
    20         <?php if ( comments_open() ) : ?>
     20        <?php if ( comments_open() && ! is_single() ) : ?>
    2121        <span class="comments-link">
    2222            <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
  • trunk/wp-content/themes/twentythirteen/content-video.php

    r23452 r23621  
    2828        <?php twentythirteen_entry_meta(); ?>
    2929
    30         <?php if ( comments_open() ) : ?>
     30        <?php if ( comments_open() && ! is_single() ) : ?>
    3131        <span class="comments-link">
    3232            <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
  • trunk/wp-content/themes/twentythirteen/content.php

    r23463 r23621  
    4343
    4444    <footer class="entry-meta">
    45         <?php if ( comments_open() ) : ?>
     45        <?php if ( comments_open() && ! is_single() ) : ?>
    4646            <div class="comments-link">
    4747                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.