[wp-trac] [WordPress Trac] #29870: Pagination disappears after deleting the last page of post entries
WordPress Trac
noreply at wordpress.org
Fri Feb 20 17:54:32 UTC 2015
#29870: Pagination disappears after deleting the last page of post entries
----------------------------------------+-----------------------------
Reporter: Greg Raven | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 4.0
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses:
----------------------------------------+-----------------------------
Comment (by A5hleyRich):
I'm not sure `WP_List_Table` is at fault here, the issue is that the
`prepare_items` method in the `WP_Posts_List_Table` class is not passing
the correct values.
The reason for querying for the post counts separately is for performance
reasons. The initial query doesn't return results because the SQL offset
exceeds the amount of posts, but removing the offset will query and return
all posts on every paginated page, hence the additional lookup.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29870#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list