Manage Posts paging fix from Westi. fixes #2693

git-svn-id: http://svn.automattic.com/wordpress/trunk@4316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-04 07:43:23 +00:00
parent c0c0885c61
commit f26dffc5d0

View File

@ -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') ) {