[wp-trac] [WordPress Trac] #3368: $wp_query->max_num_pages needs to be ceil()'d

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 18 03:03:57 GMT 2006


#3368: $wp_query->max_num_pages needs to be ceil()'d
----------------------+-----------------------------------------------------
 Reporter:  MattRead  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:           
Component:  Template  |     Version:  2.1      
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 $wp_query->max_num_pages needs to be ceil()'ed cause it can return things
 like 1.6, which screw up the paging links, from next_posts_link() etc...

 I attach a diff for query.php

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3368>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list