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
This commit is contained in:
Aaron Jorbin 2015-01-08 05:57:22 +00:00
parent fa81716df2
commit c3e89ea432

View File

@ -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' ),
) );