[wp-trac] [WordPress Trac] #10219: "Older Entries" and "Newer Entries" links are wrong when entries displayed in ascending order

WordPress Trac noreply at wordpress.org
Sat Jun 21 23:05:02 UTC 2025


#10219: "Older Entries" and "Newer Entries" links are wrong when entries displayed
in ascending order
-------------------------------------+-------------------------------------
 Reporter:  jikamens                 |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:
Component:  Bundled Theme            |     Version:  3.2
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  ui, accessibility,
  test-info needs-patch              |  template
-------------------------------------+-------------------------------------
Changes (by SirLouen):

 * keywords:  needs-testing has-patch => good-first-bug has-test-info needs-
     patch
 * type:  enhancement => defect (bug)
 * focuses:  template => ui, accessibility, template
 * component:  Posts, Post Types => Bundled Theme
 * version:   => 3.2


Comment:

 == Reproduction Report
 === Description
 ✅ This report validates that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Thirteen 4.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Testing Instructions
 1. Add many posts and assign the same TAG to all, for example tag `test`
 2. Go to `/tag/test/?order=ASC`
 3. Check the order and the navigation buttons
 4. 🐞 `Older Posts`/`Newer Posts` links are switched around. Older posts
 are linking to Newer posts and Newer Posts are linking to Older Posts.

 - **Important Note**: If you switch to `/tag/test/?order=DESC` then links
 are correct.
 - The problem here is that `Older Posts`/`Newer Posts` don't take in
 consideration the `order` parameter.

 === Actual Results
 1.  ✅ Error condition occurs (reproduced).

 === Additional Notes
 - For the screencast I'm using 2013, but manually I've tested all themes
 from 2011 to 2025 and this is affecting the following themes:
 1. 🐞 2011
 2. 🐞 2012
 3. 🐞 2013
 4. 🐞 2019
 5. 🐞 2020
 6. 🐞 2021

 - 2014, 2015, 2016, 2017, 2022, 2023, 2024, 2025 doesn't use the
 Older/Newer Posts but a regular pagination, or a next/previous page
 format, so this issue doesn't affect these themes

 - Given that the patches are not applying, and they are so old, I'm adding
 back `needs-patch` to see if it brings some attention. I think that this
 is interesting because it might also be affecting future themes.

 - I believe that this could impact `Accessibility` because texts are
 giving wrong directions.

 === Supplemental Artifacts
 Screencast with the problem:
 https://f003.backblazeb2.com/file/wordpress-videos/wp-
 videos/2025/06/10219.mp4

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


More information about the wp-trac mailing list