Make WordPress Core


Ignore:
Timestamp:
10/21/2013 04:34:56 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fix non-image attachment page layout, props iamtakashi. Fixes #25624.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r25802 r25856  
    8181                <div class="nav-links">
    8282                        <?php
     83                        if ( is_attachment() ) :
     84                                previous_post_link( '%link', __( '<span class="meta-nav">Published In</span>%title', 'twentyfourteen' ) );
     85                        else :
    8386                                previous_post_link( '%link', __( '<span class="meta-nav">Previous Post</span>%title', 'twentyfourteen' ) );
    8487                                next_post_link( '%link', __( '<span class="meta-nav">Next Post</span>%title', 'twentyfourteen' ) );
     88                        endif;
    8589                        ?>
    8690                </div><!-- .nav-links -->
Note: See TracChangeset for help on using the changeset viewer.