Make WordPress Core

Changeset 26586


Ignore:
Timestamp:
12/03/2013 08:42:02 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: avoid empty markup when no next or previous image in image template. Props MikeHansenMe and jartes, fixes #26208.

File:
1 edited

Legend:

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

    r26556 r26586  
    7777            <nav id="image-navigation" class="navigation image-navigation">
    7878                <div class="nav-links">
    79                 <div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div>
    80                 <div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div>
     79                <?php previous_image_link( false, '<div class="previous-image">' . __( 'Previous Image', 'twentyfourteen' ) . '</div>' ); ?>
     80                <?php next_image_link( false, '<div class="next-image">' . __( 'Next Image', 'twentyfourteen' ) . '</div>' ); ?>
    8181                </div><!-- .nav-links -->
    8282            </nav><!-- #image-navigation -->
Note: See TracChangeset for help on using the changeset viewer.