paginate_links now uses global $wp_query

This commit is contained in:
Dan Coulthard 2014-11-26 13:22:30 +00:00
parent a691fa0bce
commit db585cc21b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $jobs->max_num_pages
'total' => $wp_query->max_num_pages
));
?>