[wp-trac] [WordPress Trac] #14977: Post editor pagination count is incorrect.

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 27 19:14:18 UTC 2010


#14977: Post editor pagination count is incorrect.
----------------------------+-----------------------------------------------
 Reporter:  peterchester    |       Owner:                                    
     Type:  defect (bug)    |      Status:  new                               
 Priority:  normal          |   Milestone:  Awaiting Review                   
Component:  Administration  |     Version:  3.1                               
 Severity:  minor           |    Keywords:  post list,display count,pagination
----------------------------+-----------------------------------------------
 * I have 16 posts.[[BR]]
 * I look at the posts in the post list [site]/wp-admin/edit.php[[BR]]
 * The pagination reads "Displaying 1–16 of 16"[[BR]]
 * But it's only actually displaying 1-15.  And display's post 16 on the
 next page.

 The weird thing is this... I clicked screen options and it said 20 posts.
 I clicked save screen options and there was no more pagination for my 16
 posts.  I then set it to 15.  It then correctly read Displaying 1 - 15 of
 16 posts.

 Looking at the code, I don't see how this is possible.  For it to say
 displaying 1 - 16 of 16, $per_page had to be 16 and $count_posts had to be
 16.  But it appeared, in a way, that $per_page was simply not be set.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14977>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list