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

git-svn-id: https://develop.svn.wordpress.org/trunk@26586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-12-03 20:42:02 +00:00
parent 7b9c30f2e3
commit 49e6e30c31
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ get_header();
<nav id="image-navigation" class="navigation image-navigation">
<div class="nav-links">
<div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div>
<div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div>
<?php previous_image_link( false, '<div class="previous-image">' . __( 'Previous Image', 'twentyfourteen' ) . '</div>' ); ?>
<?php next_image_link( false, '<div class="next-image">' . __( 'Next Image', 'twentyfourteen' ) . '</div>' ); ?>
</div><!-- .nav-links -->
</nav><!-- #image-navigation -->