_s: Make it easier to target post navigation links.

Removed in 3f4effb when we split the template tag, this will restore
parity with `_s_paging_nav()`.

Props @gatespace for initial patch. Fixes #371.
This commit is contained in:
obenland 2014-01-01 17:30:24 -08:00
parent 288e5ba49c
commit e55cb8a038
1 changed files with 4 additions and 4 deletions

View File

@ -55,10 +55,10 @@ function _s_post_nav() {
<nav class="navigation post-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
<div class="nav-links">
<?php previous_post_link( '%link', _x( '<span class="meta-nav">&larr;</span> %title', 'Previous post link', '_s' ) ); ?>
<?php next_post_link( '%link', _x( '%title <span class="meta-nav">&rarr;</span>', 'Next post link', '_s' ) ); ?>
<?php
previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">&larr;</span> %title', 'Previous post link', '_s' ) );
next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">&rarr;</span>', 'Next post link', '_s' ) );
?>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<?php