From f26dffc5d03987f26b56b68036a5ddfbae799108 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 4 Oct 2006 07:43:23 +0000 Subject: [PATCH] Manage Posts paging fix from Westi. fixes #2693 git-svn-id: http://svn.automattic.com/wordpress/trunk@4316 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 78e789fad..3526f5cb9 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') ) {