mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
c0c0885c61
commit
f26dffc5d0
@ -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') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user