Skip to content
Permalink
Browse files

Merge pull request #16 from LauraRocks/hotfix/numeric-post-nav-fix

add numeric_posts_nav query reset when returning early
  • Loading branch information...
TeemuSuoranta committed Oct 4, 2019
2 parents 1bfc18e + 73f4145 commit 6e2b4a626dc5c8e7727e9e8a10aef6da78596fbb
Showing with 4 additions and 0 deletions.
  1. +4 −0 inc/navigation/function-numeric-posts-nav.php
@@ -36,6 +36,10 @@ function aucor_starter_numeric_posts_nav($custom_query = null, $custom_paged_var
$clean_url = esc_url(remove_query_arg($paged_variable));
if ($max_num_pages <= 1) {
// reset previous global wp_query
if (!empty($wp_query_temp)) {
$wp_query = $wp_query_temp;
}
return;
}

0 comments on commit 6e2b4a6

Please sign in to comment.
You can’t perform that action at this time.