Make WordPress Core

Opened 22 years ago

Closed 21 years ago

#990 closed defect (bug) (fixed)

posts_nav_links() does wrong page count

Reported by: anonymousbugger Owned by:
Priority: normal Milestone:
Component: Administration Version: 1.5
Severity: minor Keywords:
Cc: Focuses:

Description

in lines 455 and 495 of template-functions-links.php
that:
$numposts = $wpdb->get_var(”SELECT COUNT(ID) FROM $fromwhere”);
has to be changed:
$numposts = $wpdb->get_var(”SELECT COUNT( DISTINCT ID) FROM $fromwhere”);

Attachments (1)

post_nav_links_sql_fix.txt​ (1.1 KB ) - added by anonymousbugger 21 years ago.

Download all attachments as: .zip

Change History (4)

#1 @anonymousbugger
22 years ago

  • Patch → No

#2 @coffelius
22 years ago

patch for 1.5.1-alpha svn revision 2394 attached

#3 @westi
21 years ago

  • Resolution → fixed
  • Status new → closed

This is a duplicate of #789 and was fixed by [2855]

Note: See TracTickets for help on using tickets.