Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 3 years ago

#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)

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

Download all attachments as: .zip

Change History (2)

#1 @ryan
20 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.