[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
Tue Jul 22 14:49:20 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: Awaiting Review
Component: Bundled Theme | Version: 3.2
Severity: normal | Resolution:
Keywords: has-test-info has- | Focuses: ui, accessibility, template
patch |
--------------------------------+------------------------------------------
Comment (by SirLouen):
Replying to [comment:31 shreya0shrivastava]:
> > @shreya0shrivastava I've sent you
[https://core.trac.wordpress.org/attachment/ticket/10219/10219.5.diff this
patch] for 2011 with the idea to simplify the code a bit and avoid `kses`
that I don't think they are required. The idea was to simplify as much as
possible. I think you could apply similar logic for 2012 and 2013. Give it
a check and give me your opinion and once you have reach a conclusion, you
can send a commit to your PR with the latest changes.
>
> Thanks for the review! The changes are very neat and do make the code
simpler but I think we need to preserve the DOM order of the markup (nav-
previous class element should be before nav-next class element). Would
love to know your thoughts on how we can achieve that while also making
the code neater.
>
> ref: https://github.com/WordPress/wordpress-
develop/pull/9090#issuecomment-3020524140
Sure, you can preserve the order as you say. I just sent the patch as a
reference for you to review and add.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10219#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list