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

Built from https://develop.svn.wordpress.org/trunk@26586


git-svn-id: http://core.svn.wordpress.org/trunk@26476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-12-03 20:43:10 +00:00
parent 64ff23f8f8
commit c72bcbe38e
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 -->