#3368 closed defect (bug) (fixed)
$wp_query->max_num_pages needs to be ceil()'d
Reported by: | MattRead | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
$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
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [4488]) ceil() max_num_pages. Props MattRead. fixes #3368