From c3e89ea43291c4313559bd623ab734449f26f412 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Thu, 8 Jan 2015 05:57:22 +0000 Subject: [PATCH] Add context for 'Previous' and 'Next' strings in get_the_posts_pagination(). merges [31071] to 4.1 branch props SergeyBiryukov fixes #30762 for trunk. Built from https://develop.svn.wordpress.org/branches/4.1@31082 git-svn-id: http://core.svn.wordpress.org/branches/4.1@31063 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 97a59906ba..a9f87d6e5e 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2310,8 +2310,8 @@ function get_the_posts_pagination( $args = array() ) { if ( $GLOBALS['wp_query']->max_num_pages > 1 ) { $args = wp_parse_args( $args, array( 'mid_size' => 1, - 'prev_text' => __( 'Previous' ), - 'next_text' => __( 'Next' ), + 'prev_text' => _x( 'Previous', 'previous post' ), + 'next_text' => _x( 'Next', 'next post' ), 'screen_reader_text' => __( 'Posts navigation' ), ) );