Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 2 months ago

#3368 closed defect (bug) (fixed)

$wp_query->max_num_pages needs to be ceil()'d

Reported by: mattread's profile 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)

query.diff (636 bytes) - added by MattRead 17 years ago.

Download all attachments as: .zip

Change History (2)

@MattRead
17 years ago

#1 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4488]) ceil() max_num_pages. Props MattRead. fixes #3368

Note: See TracTickets for help on using tickets.