[wp-trac] [WordPress Trac] #33020: prev_text and next_text arguments for the_posts_navigation() reversed

WordPress Trac noreply at wordpress.org
Thu Jul 16 17:35:55 UTC 2015


#33020: prev_text and next_text arguments for the_posts_navigation() reversed
--------------------------+-----------------------------
 Reporter:  berubes       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I had trouble customizing '''the_posts_navigation()''' with arguments
 [https://developer.wordpress.org/reference/functions/get_the_posts_navigation/
 described in the Code Reference].

 At link-template.php line 2299, there is the following.

 {{{
                 $next_link = get_previous_posts_link( $args['next_text']
 );
                 $prev_link = get_next_posts_link( $args['prev_text'] );
 }}}

 It appears that get_'''previous'''_posts_link and
 get_'''next'''_posts_link seem to be mixed up.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33020>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list