Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#1204 closed defect (bug) (duplicate)

Blog stats do not display correctly in the Dashboard

Reported by: drdave's profile drdave Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: Administration Keywords:
Focuses: Cc:

Description

The formatting string to display number of comments/posts/categories is wrong:

printf(('There are currently %1$d <a href="%2$s" title="Posts">posts</a> and %3$d <a href="%4$s" title="Comments">comments</a>, contained within %5$d <a href="%6$s" title="categories">categories</a>.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php');

should be:

printf(('There are currently %1$s <a href="%2$s" title="Posts">posts</a> and %3$s <a href="%4$s" title="Comments">comments</a>, contained within %5$s <a href="%6$s" title="categories">categories</a>.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php');

The difference being that the counts are formatted as strings rather than digits.

Otherwise, any number above 1000 ends up shortened because of number_format() returning 1,000 etc.

Change History (3)

#1 @drdave
19 years ago

  • Patch set to No

#2 @ryan
19 years ago

  • duplicate_id changed from 0 to 1074
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

#3 @ryan
19 years ago

  • Resolution changed from 20 to 60
Note: See TracTickets for help on using tickets.