Merge pull request #16 from bmsdan/master

paginate_links now uses global $wp_query
This commit is contained in:
Mike Francis 2014-11-28 11:29:07 +00:00
commit 308f2b7506
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
));
?>