[wp-trac] [WordPress Trac] #33020: prev_text and next_text arguments for the_posts_navigation() reversed
WordPress Trac
noreply at wordpress.org
Mon Jul 20 20:28:13 UTC 2015
#33020: prev_text and next_text arguments for the_posts_navigation() reversed
--------------------------+----------------------
Reporter: berubes | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Themes | Version: 4.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by obenland):
* status: new => closed
* version: 4.2.2 => 4.1
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The naming of `get_previous_posts_link()` and `get_next_posts_link()` is a
bit confusing in the context of this template tag.
`get_next_posts_link()` will return a link to the page of older (previous)
posts , while `get_previous_posts_link()` will return a link to the page
of newer (next) posts published after where you are in tim.
Does that make sense?
So `prev_text` is for the link to the posts previous to the list of posts
you currently see.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33020#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list