#3368 closed defect (bug) (fixed)
$wp_query->max_num_pages needs to be ceil()'d
| Reported by: | MattRead | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [4488]) ceil() max_num_pages. Props MattRead. fixes #3368