Opened 8 years ago
Closed 5 years ago
#39818 closed defect (bug) (duplicate)
Bulk Publishing Posts (from Pending State) Causes Pagination To Break
Reported by: | CrazyEngineers | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7.2 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
Steps: -
- Create about 30 posts, all in 'pending' state.
- In admin panel, bulk edit all these posts and change status to 'publish'
Observe: The order of the posts gets messed up in the admin panel. If pagination is in place, you can notice duplicate posts on pages.
Apparently, the 'publish date' of the posts is messed up at the time of bulk publishing all the posts. WP_Query cannot decide how to paginate posts because multiple posts would have the same publishing time (unix timestamp).
Notes: I encountered this bug at the time of creating posts using a script (to test my plugin). I could reproduce it on two different servers; but not on my local machine with exported XML.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi @CrazyEngineers, welcome to WordPress Trac!
Thanks for the report, sorry it took so long for someone to get back to you.
I'm closing the ticket in favor of #44349, which appears to have more details and traction.