Skip to content
Permalink
Browse files

add numeric_posts_nav query reset when returning early

  • Loading branch information...
LauraRocks committed Sep 20, 2019
1 parent 5ad818d commit 73f4145012df46e22f2aa5d6a79316fa2123ce57
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 73f4145

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