From 2a6e4903dcdc0afb0f0da0a38187f596ae5bcc9a Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 4 Oct 2006 07:43:23 +0000 Subject: [PATCH] Manage Posts paging fix from Westi. fixes #2693 git-svn-id: https://develop.svn.wordpress.org/trunk@4316 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 78e789fade..3526f5cb9e 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -476,7 +476,7 @@ function _max_num_pages() { global $wpdb, $wp_query; if (isset($max_num_pages)) return $max_num_pages; - $posts_per = (int) get_option('posts_per_page'); + $posts_per = get_query_var('posts_per_page'); if ( empty($posts_per) ) $posts_per = 1; if ( 'posts' == get_query_var('what_to_show') ) {