Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Explicit is better than implicit.

  • Loading branch information...
commit 2b1b9cb27126c7804e0c964e0c7a6fa25c78f459 1 parent 5535179
@eyeseast eyeseast authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  archive.php
  2. +2 −2 loop.php
View
2  archive.php
@@ -37,7 +37,7 @@
<?php endif; ?>
</h3>
-<nav>
+<nav>
<ul class="list-pagination">
<li class="older-posts"><?php next_posts_link( 'Older posts' ); ?></li>
<li class="newer-posts"><?php previous_posts_link( 'Newer posts' ); ?></li>
View
4 loop.php
@@ -104,9 +104,9 @@
<nav>
<ul class="list-pagination">
<?php if ($next): ?>
- <li class="older-posts"><?php next_posts_link( '&laquo; Older posts' ); ?></li>
+ <li class="older-posts"><?php next_posts_link( '&laquo; Older posts', $wp_query->max_num_pages ); ?></li>
<?php endif; ?><?php if ($previous): ?>
- <li class="newer-posts"><?php previous_posts_link( 'Newer posts &raquo;' ); ?></li>
+ <li class="newer-posts"><?php previous_posts_link( 'Newer posts &raquo;', $wp_query->max_num_pages ); ?></li>
<?php endif; ?>
</ul>
</nav><!-- .list-pagination -->
Please sign in to comment.
Something went wrong with that request. Please try again.