Manage Posts paging fix from Westi. fixes #2693

git-svn-id: https://develop.svn.wordpress.org/trunk@4316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2006-10-04 07:43:23 +00:00
parent c73dc7e99d
commit 2a6e4903dc
1 changed files with 1 additions and 1 deletions

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