[wp-trac] [WordPress Trac] #29870: Pagination disappears after deleting the last page of post entries

WordPress Trac noreply at wordpress.org
Thu Nov 12 17:12:33 UTC 2015


#29870: Pagination disappears after deleting the last page of post entries
-------------------------------+-----------------------------
 Reporter:  Greg Raven         |       Owner:  wonderboymusic
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  4.0
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+-----------------------------

Comment (by bradyvercher):

 I attached a new patch that continues using `$wp_query->found_posts` on
 the first page of results or when any posts are actually found, otherwise
 it'll use the post counts to determine if the request is out of bounds.

 I also went ahead and removed the `$total_pages` calculation since that's
 done immediately in `WP_List_Table::set_pagination_args()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29870#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list