[wp-trac] [WordPress Trac] #55751: get_the_posts_navigation() is using incorrect functions to output navigation links

WordPress Trac noreply at wordpress.org
Fri Aug 12 13:19:37 UTC 2022


#55751: get_the_posts_navigation() is using incorrect functions to output
navigation links
--------------------------------------+-----------------------
 Reporter:  jongycastillo             |       Owner:  (none)
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.1
Component:  Posts, Post Types         |     Version:  5.9.3
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by geisthanen):

 Replying to [comment:10 SergeyBiryukov]:
 > Hi there, welcome to WordPress Trac! Thanks for the ticket and the PRs.
 >
 > This is indeed super confusing. It makes some sense in theory, but I'm
 still trying to wrap my head around what would be the expected result for
 the code in comment:7, and I'm not 100% sure yet that there is no core bug
 there.
 >
 > Moving to the milestone to add some unit tests and maybe improve
 documentation for these functions and filters.

 IMO, this is working correctly but the variables names and documentation
 don't help to make this clear. Is there anyway we can improve this?

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


More information about the wp-trac mailing list