Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated posts navigation function #54

Merged
merged 3 commits into from
Jul 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<?php endwhile; ?>

<?php the_posts_navigation(); ?>
<?php posts_navigation(); ?>

<?php else : ?>

Expand Down
6 changes: 3 additions & 3 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* @package _s
*/

if ( ! function_exists( 'the_posts_navigation' ) ) :
if ( ! function_exists( 'posts_navigation' ) ) :
/**
* Display navigation to next/previous set of posts when applicable.
*
* @todo Remove this function when WordPress 4.3 is released.
*/
function the_posts_navigation() {
function posts_navigation() {
// Don't print empty markup if there's only one page.
if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
return;
Expand Down Expand Up @@ -299,4 +299,4 @@ function _s_do_social_icons() { ?>
</li>
</ul>

<?php }
<?php }
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<?php endwhile; ?>

<?php the_posts_navigation(); ?>
<?php posts_navigation(); ?>

<?php else : ?>

Expand Down