diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
commit | 767c3538b9f4aa2684429a7efea8f7728034c754 (patch) | |
tree | 8cc7b4bc82bfc8e5cc2179b7a8aa7b4f9a2be193 /wp-includes/link-template.php | |
parent | 23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (diff) | |
download | wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.gz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.xz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.zip |
WP Merge to rev 4347
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/link-template.php')
-rw-r--r-- | wp-includes/link-template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 78e789f..3526f5c 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') ) { |