[wp-trac] [WordPress Trac] #56265: issue with unordered posts in pagination after deleting one post
WordPress Trac
noreply at wordpress.org
Fri Jul 22 10:13:36 UTC 2022
#56265: issue with unordered posts in pagination after deleting one post
--------------------------+------------------------------------------------
Reporter: mikulabc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post | Version:
Types |
Severity: normal | Resolution:
Keywords: | Focuses: ui, accessibility, administration
--------------------------+------------------------------------------------
Changes (by mikulabc):
* keywords: needs-testing reporter-feedback =>
Comment:
@costdev I was able to replicate the issue and the bug still randomizes
the order, if you follow the test below you will get the same:
‼ Only view "**All Posts**", url: **/wp-admin/edit.php?post_type=post**
1. Create 5 posts "**Test 1**" ..2,3,4,5 **AND** save as "**pending**"
**AND** set the publish date to "**2022/01/01 at 9:00 am**"
2. At this point, WordPress decided to give the posts a random order
3. The current order of the posts that i have is Test "**2,1,4,5,3**" even
though the order i created them was "**1,2,3,4,5**"
4. Delete the 2nd post which is "**Test 1**"
5. The order now is still correct "**2,4,5,3**" ("1" is missing, but
WordPress keeps the order from the beginning)
6. Delete another item, eg. "**Test 4**"
7. WordPress decides to order the items completely different, the new
order is "**3,5,2**".
**SUMMARY AS EXPECTED:** 🐞❌ The remaining posts display in a different
order than before.
----
Replying to [comment:1 costdev]:
> Hi @mikulabc, thanks for opening this ticket! To help make testing this
issue easier, let's get some testing instructions on the ticket.
>
> Please confirm whether the bug appears for you after following these
instructions. If the bug doesn't occur, please let me know which steps
should be corrected.
>
> == Testing Instructions
>
> === Steps to Reproduce
> 1. Create five posts and set their status to `Pending`.
> 2. Navigate to `Posts > Pending`. Note the order of the posts.
> 3. Delete the second post.
> 4. 🐞 The remaining posts display in a different order than before.
>
> === Expected Results
> - ❌ The remaining posts display in a different order than before.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56265#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list